home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 2.1B1 / AIncludes / Files.a < prev    next >
Encoding:
Text File  |  1995-04-18  |  95.1 KB  |  4,333 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Files.a
  3. ;
  4. ;    Contains:    File Manager (HFS and MFS) Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.1ß1 in “MPW Prerelease” on ETO #17
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  21. __FILES__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  30.     include 'MixedMode.a'
  31.     ENDIF
  32.  
  33.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  34.     include 'OSUtils.a'
  35.     ENDIF
  36. ;        include 'Memory.a'                                            ;
  37.  
  38. ; Finder Constants 
  39. fsAtMark                        EQU        0
  40. fOnDesk                            EQU        1
  41. fsCurPerm                        EQU        0
  42. fHasBundle                        EQU        8192
  43. fsRdPerm                        EQU        1
  44. fInvisible                        EQU        16384
  45. fTrash                            EQU        -3
  46. fsWrPerm                        EQU        2
  47. fDesktop                        EQU        -2
  48. fsRdWrPerm                        EQU        3
  49. fDisk                            EQU        0
  50. fsRdWrShPerm                    EQU        4
  51. fsFromStart                        EQU        1
  52. fsFromLEOF                        EQU        2
  53. fsFromMark                        EQU        3
  54. rdVerify                        EQU        64
  55. ioMapBuffer                        EQU        4
  56. ioModeReserved                    EQU        8
  57. ioDirFlg                        EQU        3                    ; see IM IV-125 
  58. ioDirMask                        EQU        $10
  59. fsRtParID                        EQU        1
  60. fsRtDirID                        EQU        2
  61.  
  62. ; CatSearch SearchBits Constants 
  63. fsSBPartialName                    EQU        1
  64. fsSBFullName                    EQU        2
  65. fsSBFlAttrib                    EQU        4
  66. fsSBFlFndrInfo                    EQU        8
  67. fsSBFlLgLen                        EQU        32
  68. fsSBFlPyLen                        EQU        64
  69. fsSBFlRLgLen                    EQU        128
  70. fsSBFlRPyLen                    EQU        256
  71. fsSBFlCrDat                        EQU        512
  72. fsSBFlMdDat                        EQU        1024
  73. fsSBFlBkDat                        EQU        2048
  74. fsSBFlXFndrInfo                    EQU        4096
  75. fsSBFlParID                        EQU        8192
  76. fsSBNegate                        EQU        16384
  77. fsSBDrUsrWds                    EQU        8
  78. fsSBDrNmFls                        EQU        16
  79. fsSBDrCrDat                        EQU        512
  80. fsSBDrMdDat                        EQU        1024
  81. fsSBDrBkDat                        EQU        2048
  82. fsSBDrFndrInfo                    EQU        4096
  83.  
  84. fsSBDrParID                        EQU        8192
  85. ; vMAttrib (GetVolParms) bit position constants 
  86. bLimitFCBs                        EQU        31
  87. bLocalWList                        EQU        30
  88. bNoMiniFndr                        EQU        29
  89. bNoVNEdit                        EQU        28
  90. bNoLclSync                        EQU        27
  91. bTrshOffLine                    EQU        26
  92. bNoSwitchTo                        EQU        25
  93. bNoDeskItems                    EQU        20
  94. bNoBootBlks                        EQU        19
  95. bAccessCntl                        EQU        18
  96. bNoSysDir                        EQU        17
  97. bHasExtFSVol                    EQU        16
  98. bHasOpenDeny                    EQU        15
  99. bHasCopyFile                    EQU        14
  100. bHasMoveRename                    EQU        13
  101. bHasDesktopMgr                    EQU        12
  102. bHasShortName                    EQU        11
  103. bHasFolderLock                    EQU        10
  104. bHasPersonalAccessPrivileges    EQU        9
  105.  
  106. bHasUserGroupList                EQU        8
  107. bHasCatSearch                    EQU        7
  108. bHasFileIDs                        EQU        6
  109. bHasBTreeMgr                    EQU        5
  110. bHasBlankAccessPrivileges        EQU        4
  111. ; Desktop Database icon Constants 
  112. kLargeIcon                        EQU        1
  113. kLarge4BitIcon                    EQU        2
  114. kLarge8BitIcon                    EQU        3
  115. kSmallIcon                        EQU        4
  116. kSmall4BitIcon                    EQU        5
  117. kSmall8BitIcon                    EQU        6
  118. kLargeIconSize                    EQU        256
  119. kLarge4BitIconSize                EQU        512
  120. kLarge8BitIconSize                EQU        1024
  121. kSmallIconSize                    EQU        64
  122. kSmall4BitIconSize                EQU        128
  123. kSmall8BitIconSize                EQU        256
  124. ; Foreign Privilege Model Identifiers 
  125. fsUnixPriv                        EQU        1
  126. ; Version Release Stage Codes 
  127. developStage                    EQU        $20
  128. alphaStage                        EQU        $40
  129.  
  130. betaStage                        EQU        $60
  131. finalStage                        EQU        $80
  132. ; Authentication Constants 
  133. kNoUserAuthentication            EQU        1
  134. kPassword                        EQU        2
  135. kEncryptPassword                EQU        3
  136. kTwoWayEncryptPassword            EQU        6
  137.  
  138. hFileInfo                        EQU        0
  139. dirInfo                            EQU        1
  140.  
  141. ; typedef SInt8             CInfoType
  142.  
  143. ; mapping codes (ioObjType) for MapName & MapID 
  144. kOwnerID2Name                    EQU        1
  145. kGroupID2Name                    EQU        2
  146. kOwnerName2ID                    EQU        3
  147. kGroupName2ID                    EQU        4
  148. ; types of oj object to be returned (ioObjType) for _GetUGEntry 
  149. kReturnNextUser                    EQU        1
  150. kReturnNextGroup                EQU        2
  151. kReturnNextUG                    EQU        3
  152.  
  153. FInfo                     RECORD    0
  154. fdType                     ds.l   1        ; offset: $0 (0)        ;the type of the file
  155. fdCreator                 ds.l   1        ; offset: $4 (4)        ;file's creator
  156. fdFlags                     ds.w   1        ; offset: $8 (8)        ;flags ex. hasbundle,invisible,locked, etc.
  157. fdLocation                 ds     Point    ; offset: $A (10)        ;file's location in folder
  158. fdFldr                     ds.w   1        ; offset: $E (14)        ;folder containing file
  159. sizeof                     EQU *            ; size:   $10 (16)
  160.                         ENDR
  161.  
  162. ; typedef struct FInfo         FInfo
  163. FXInfo                     RECORD    0
  164. fdIconID                 ds.w   1        ; offset: $0 (0)        ;Icon ID
  165. fdUnused                 ds.w   3        ; offset: $2 (2)        ;unused but reserved 6 bytes
  166. fdScript                 ds.b   1        ; offset: $8 (8)        ;Script flag and number
  167. fdXFlags                 ds.b   1        ; offset: $9 (9)        ;More flag bits
  168. fdComment                 ds.w   1        ; offset: $A (10)        ;Comment ID
  169. fdPutAway                 ds.l   1        ; offset: $C (12)        ;Home Dir ID
  170. sizeof                     EQU *            ; size:   $10 (16)
  171.                         ENDR
  172.  
  173. ; typedef struct FXInfo     FXInfo
  174. DInfo                     RECORD    0
  175. frRect                     ds     Rect    ; offset: $0 (0)        ;folder rect
  176. frFlags                     ds.w   1        ; offset: $8 (8)        ;Flags
  177. frLocation                 ds     Point    ; offset: $A (10)        ;folder location
  178. frView                     ds.w   1        ; offset: $E (14)        ;folder view
  179. sizeof                     EQU *            ; size:   $10 (16)
  180.                         ENDR
  181.  
  182. ; typedef struct DInfo         DInfo
  183. DXInfo                     RECORD    0
  184. frScroll                 ds     Point    ; offset: $0 (0)        ;scroll position
  185. frOpenChain                 ds.l   1        ; offset: $4 (4)        ;DirID chain of open folders
  186. frScript                 ds.b   1        ; offset: $8 (8)        ;Script flag and number
  187. frXFlags                 ds.b   1        ; offset: $9 (9)        ;More flag bits
  188. frComment                 ds.w   1        ; offset: $A (10)        ;comment
  189. frPutAway                 ds.l   1        ; offset: $C (12)        ;DirID
  190. sizeof                     EQU *            ; size:   $10 (16)
  191.                         ENDR
  192.  
  193. ; typedef struct DXInfo     DXInfo
  194. GetVolParmsInfoBuffer     RECORD    0
  195. vMVersion                 ds.w   1        ; offset: $0 (0)        ;version number
  196. vMAttrib                 ds.l   1        ; offset: $2 (2)        ;bit vector of attributes (see vMAttrib constants)
  197. vMLocalHand                 ds.l   1        ; offset: $6 (6)        ;handle to private data
  198. vMServerAdr                 ds.l   1        ; offset: $A (10)        ;AppleTalk server address or zero
  199. vMVolumeGrade             ds.l   1        ; offset: $E (14)        ;approx. speed rating or zero if unrated
  200. vMForeignPrivID             ds.w   1        ; offset: $12 (18)        ;foreign privilege model supported or zero if none
  201. sizeof                     EQU *            ; size:   $14 (20)
  202.                         ENDR
  203.  
  204. ; typedef struct GetVolParmsInfoBuffer  GetVolParmsInfoBuffer
  205. ; typedef ParamBlockRec     *ParmBlkPtr
  206. IOParam                 RECORD    0
  207. qLink                     ds.l   1        ; offset: $0 (0)
  208. qType                     ds.w   1        ; offset: $4 (4)
  209. ioTrap                     ds.w   1        ; offset: $6 (6)
  210. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  211. ioCompletion             ds.l   1        ; offset: $C (12)
  212. ioResult                 ds.w   1        ; offset: $10 (16)
  213. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  214. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  215. ioRefNum                 ds.w   1        ; offset: $18 (24)
  216. ioVersNum                 ds.b   1        ; offset: $1A (26)
  217. ioPermssn                 ds.b   1        ; offset: $1B (27)
  218. ioMisc                     ds.l   1        ; offset: $1C (28)
  219. ioBuffer                 ds.l   1        ; offset: $20 (32)
  220. ioReqCount                 ds.l   1        ; offset: $24 (36)
  221. ioActCount                 ds.l   1        ; offset: $28 (40)
  222. ioPosMode                 ds.w   1        ; offset: $2C (44)
  223. ioPosOffset                 ds.l   1        ; offset: $2E (46)
  224. sizeof                     EQU *            ; size:   $32 (50)
  225.                         ENDR
  226.  
  227. ; typedef struct IOParam     IOParam, *IOParamPtr
  228. FileParam                 RECORD    0
  229. qLink                     ds.l   1        ; offset: $0 (0)
  230. qType                     ds.w   1        ; offset: $4 (4)
  231. ioTrap                     ds.w   1        ; offset: $6 (6)
  232. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  233. ioCompletion             ds.l   1        ; offset: $C (12)
  234. ioResult                 ds.w   1        ; offset: $10 (16)
  235. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  236. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  237. ioFRefNum                 ds.w   1        ; offset: $18 (24)
  238. ioFVersNum                 ds.b   1        ; offset: $1A (26)
  239. filler1                     ds.b   1        ; offset: $1B (27)
  240. ioFDirIndex                 ds.w   1        ; offset: $1C (28)
  241. ioFlAttrib                 ds.b   1        ; offset: $1E (30)
  242. ioFlVersNum                 ds.b   1        ; offset: $1F (31)
  243. ioFlFndrInfo             ds     FInfo    ; offset: $20 (32)
  244. ioFlNum                     ds.l   1        ; offset: $30 (48)
  245. ioFlStBlk                 ds.w   1        ; offset: $34 (52)
  246. ioFlLgLen                 ds.l   1        ; offset: $36 (54)
  247. ioFlPyLen                 ds.l   1        ; offset: $3A (58)
  248. ioFlRStBlk                 ds.w   1        ; offset: $3E (62)
  249. ioFlRLgLen                 ds.l   1        ; offset: $40 (64)
  250. ioFlRPyLen                 ds.l   1        ; offset: $44 (68)
  251. ioFlCrDat                 ds.l   1        ; offset: $48 (72)
  252. ioFlMdDat                 ds.l   1        ; offset: $4C (76)
  253. sizeof                     EQU *            ; size:   $50 (80)
  254.                         ENDR
  255.  
  256. ; typedef struct FileParam     FileParam, *FileParamPtr
  257. VolumeParam             RECORD    0
  258. qLink                     ds.l   1        ; offset: $0 (0)
  259. qType                     ds.w   1        ; offset: $4 (4)
  260. ioTrap                     ds.w   1        ; offset: $6 (6)
  261. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  262. ioCompletion             ds.l   1        ; offset: $C (12)
  263. ioResult                 ds.w   1        ; offset: $10 (16)
  264. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  265. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  266. filler2                     ds.l   1        ; offset: $18 (24)
  267. ioVolIndex                 ds.w   1        ; offset: $1C (28)
  268. ioVCrDate                 ds.l   1        ; offset: $1E (30)
  269. ioVLsBkUp                 ds.l   1        ; offset: $22 (34)
  270. ioVAtrb                     ds.w   1        ; offset: $26 (38)
  271. ioVNmFls                 ds.w   1        ; offset: $28 (40)
  272. ioVDirSt                 ds.w   1        ; offset: $2A (42)
  273. ioVBlLn                     ds.w   1        ; offset: $2C (44)
  274. ioVNmAlBlks                 ds.w   1        ; offset: $2E (46)
  275. ioVAlBlkSiz                 ds.l   1        ; offset: $30 (48)
  276. ioVClpSiz                 ds.l   1        ; offset: $34 (52)
  277. ioAlBlSt                 ds.w   1        ; offset: $38 (56)
  278. ioVNxtFNum                 ds.l   1        ; offset: $3A (58)
  279. ioVFrBlk                 ds.w   1        ; offset: $3E (62)
  280. sizeof                     EQU *            ; size:   $40 (64)
  281.                         ENDR
  282.  
  283. ; typedef struct VolumeParam  VolumeParam, *VolumeParamPtr
  284. CntrlParam                 RECORD    0
  285. qLink                     ds.l   1        ; offset: $0 (0)
  286. qType                     ds.w   1        ; offset: $4 (4)
  287. ioTrap                     ds.w   1        ; offset: $6 (6)
  288. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  289. ioCompletion             ds.l   1        ; offset: $C (12)
  290. ioResult                 ds.w   1        ; offset: $10 (16)
  291. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  292. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  293. ioCRefNum                 ds.w   1        ; offset: $18 (24)
  294. csCode                     ds.w   1        ; offset: $1A (26)
  295. csParam                     ds.w   11        ; offset: $1C (28)
  296. sizeof                     EQU *            ; size:   $32 (50)
  297.                         ENDR
  298.  
  299. ; typedef struct CntrlParam  CntrlParam, *CntrlParamPtr
  300. SlotDevParam             RECORD    0
  301. qLink                     ds.l   1        ; offset: $0 (0)
  302. qType                     ds.w   1        ; offset: $4 (4)
  303. ioTrap                     ds.w   1        ; offset: $6 (6)
  304. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  305. ioCompletion             ds.l   1        ; offset: $C (12)
  306. ioResult                 ds.w   1        ; offset: $10 (16)
  307. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  308. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  309. ioSRefNum                 ds.w   1        ; offset: $18 (24)
  310. ioSVersNum                 ds.b   1        ; offset: $1A (26)
  311. ioSPermssn                 ds.b   1        ; offset: $1B (27)
  312. ioSMix                     ds.l   1        ; offset: $1C (28)
  313. ioSFlags                 ds.w   1        ; offset: $20 (32)
  314. ioSlot                     ds.b   1        ; offset: $22 (34)
  315. ioID                     ds.b   1        ; offset: $23 (35)
  316. sizeof                     EQU *            ; size:   $24 (36)
  317.                         ENDR
  318.  
  319. ; typedef struct SlotDevParam  SlotDevParam, *SlotDevParamPtr
  320. MultiDevParam             RECORD    0
  321. qLink                     ds.l   1        ; offset: $0 (0)
  322. qType                     ds.w   1        ; offset: $4 (4)
  323. ioTrap                     ds.w   1        ; offset: $6 (6)
  324. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  325. ioCompletion             ds.l   1        ; offset: $C (12)
  326. ioResult                 ds.w   1        ; offset: $10 (16)
  327. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  328. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  329. ioMRefNum                 ds.w   1        ; offset: $18 (24)
  330. ioMVersNum                 ds.b   1        ; offset: $1A (26)
  331. ioMPermssn                 ds.b   1        ; offset: $1B (27)
  332. ioMMix                     ds.l   1        ; offset: $1C (28)
  333. ioMFlags                 ds.w   1        ; offset: $20 (32)
  334. ioSEBlkPtr                 ds.l   1        ; offset: $22 (34)
  335. sizeof                     EQU *            ; size:   $26 (38)
  336.                         ENDR
  337.  
  338. ; typedef struct MultiDevParam  MultiDevParam, *MultiDevParamPtr
  339. ParamBlockRec             RECORD    0
  340. qLink                     ds.l   1        ; offset: $0 (0)
  341. qType                     ds.w   1        ; offset: $4 (4)
  342. ioTrap                     ds.w   1        ; offset: $6 (6)
  343. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  344. ioCompletion             ds.l   1        ; offset: $C (12)
  345. ioResult                 ds.w   1        ; offset: $10 (16)
  346. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  347. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  348. ioRefNum                 ds.w   1        ; offset: $18 (24)
  349. ioVersNum                 ds.b   1        ; offset: $1A (26)
  350. ioPermssn                 ds.b   1        ; offset: $1B (27)
  351. ioMisc                     ds.l   1        ; offset: $1C (28)
  352. ioBuffer                 ds.l   1        ; offset: $20 (32)
  353. ioReqCount                 ds.l   1        ; offset: $24 (36)
  354. ioActCount                 ds.l   1        ; offset: $28 (40)
  355. ioPosMode                 ds.w   1        ; offset: $2C (44)
  356. ioPosOffset                 ds.l   1        ; offset: $2E (46)
  357.                          ORG 24
  358. ioFRefNum                 ds.w   1        ; offset: $18 (24)
  359. ioFVersNum                 ds.b   1        ; offset: $1A (26)
  360. filler1                     ds.b   1        ; offset: $1B (27)
  361. ioFDirIndex                 ds.w   1        ; offset: $1C (28)
  362. ioFlAttrib                 ds.b   1        ; offset: $1E (30)
  363. ioFlVersNum                 ds.b   1        ; offset: $1F (31)
  364. ioFlFndrInfo             ds     FInfo    ; offset: $20 (32)
  365. ioFlNum                     ds.l   1        ; offset: $30 (48)
  366. ioFlStBlk                 ds.w   1        ; offset: $34 (52)
  367. ioFlLgLen                 ds.l   1        ; offset: $36 (54)
  368. ioFlPyLen                 ds.l   1        ; offset: $3A (58)
  369. ioFlRStBlk                 ds.w   1        ; offset: $3E (62)
  370. ioFlRLgLen                 ds.l   1        ; offset: $40 (64)
  371. ioFlRPyLen                 ds.l   1        ; offset: $44 (68)
  372. ioFlCrDat                 ds.l   1        ; offset: $48 (72)
  373. ioFlMdDat                 ds.l   1        ; offset: $4C (76)
  374.                          ORG 24
  375. filler2                     ds.l   1        ; offset: $18 (24)
  376. ioVolIndex                 ds.w   1        ; offset: $1C (28)
  377. ioVCrDate                 ds.l   1        ; offset: $1E (30)
  378. ioVLsBkUp                 ds.l   1        ; offset: $22 (34)
  379. ioVAtrb                     ds.w   1        ; offset: $26 (38)
  380. ioVNmFls                 ds.w   1        ; offset: $28 (40)
  381. ioVDirSt                 ds.w   1        ; offset: $2A (42)
  382. ioVBlLn                     ds.w   1        ; offset: $2C (44)
  383. ioVNmAlBlks                 ds.w   1        ; offset: $2E (46)
  384. ioVAlBlkSiz                 ds.l   1        ; offset: $30 (48)
  385. ioVClpSiz                 ds.l   1        ; offset: $34 (52)
  386. ioAlBlSt                 ds.w   1        ; offset: $38 (56)
  387. ioVNxtFNum                 ds.l   1        ; offset: $3A (58)
  388. ioVFrBlk                 ds.w   1        ; offset: $3E (62)
  389.                          ORG 24
  390. ioCRefNum                 ds.w   1        ; offset: $18 (24)
  391. csCode                     ds.w   1        ; offset: $1A (26)
  392. csParam                     ds.w   11        ; offset: $1C (28)
  393.                          ORG 24
  394. ioSRefNum                 ds.w   1        ; offset: $18 (24)
  395. ioSVersNum                 ds.b   1        ; offset: $1A (26)
  396. ioSPermssn                 ds.b   1        ; offset: $1B (27)
  397. ioSMix                     ds.l   1        ; offset: $1C (28)
  398. ioSFlags                 ds.w   1        ; offset: $20 (32)
  399. ioSlot                     ds.b   1        ; offset: $22 (34)
  400. ioID                     ds.b   1        ; offset: $23 (35)
  401.                          ORG 24
  402. ioMRefNum                 ds.w   1        ; offset: $18 (24)
  403. ioMVersNum                 ds.b   1        ; offset: $1A (26)
  404. ioMPermssn                 ds.b   1        ; offset: $1B (27)
  405. ioMMix                     ds.l   1        ; offset: $1C (28)
  406. ioMFlags                 ds.w   1        ; offset: $20 (32)
  407. ioSEBlkPtr                 ds.l   1        ; offset: $22 (34)
  408.                          ORG 80
  409. sizeof                     EQU *            ; size:   $50 (80)
  410.                         ENDR
  411.  
  412. CInfoPBRec                 RECORD    0
  413. qLink                     ds.l   1        ; offset: $0 (0)
  414. qType                     ds.w   1        ; offset: $4 (4)
  415. ioTrap                     ds.w   1        ; offset: $6 (6)
  416. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  417. ioCompletion             ds.l   1        ; offset: $C (12)
  418. ioResult                 ds.w   1        ; offset: $10 (16)
  419. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  420. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  421. ioFRefNum                 ds.w   1        ; offset: $18 (24)
  422. ioFVersNum                 ds.b   1        ; offset: $1A (26)
  423. filler1                     ds.b   1        ; offset: $1B (27)
  424. ioFDirIndex                 ds.w   1        ; offset: $1C (28)
  425. ioFlAttrib                 ds.b   1        ; offset: $1E (30)
  426. filler2                     ds.b   1        ; offset: $1F (31)
  427. ioFlFndrInfo             ds     FInfo    ; offset: $20 (32)
  428. ioDirID                     ds.l   1        ; offset: $30 (48)
  429. ioFlStBlk                 ds.w   1        ; offset: $34 (52)
  430. ioFlLgLen                 ds.l   1        ; offset: $36 (54)
  431. ioFlPyLen                 ds.l   1        ; offset: $3A (58)
  432. ioFlRStBlk                 ds.w   1        ; offset: $3E (62)
  433. ioFlRLgLen                 ds.l   1        ; offset: $40 (64)
  434. ioFlRPyLen                 ds.l   1        ; offset: $44 (68)
  435. ioFlCrDat                 ds.l   1        ; offset: $48 (72)
  436. ioFlMdDat                 ds.l   1        ; offset: $4C (76)
  437. ioFlBkDat                 ds.l   1        ; offset: $50 (80)
  438. ioFlXFndrInfo             ds     FXInfo    ; offset: $54 (84)
  439. ioFlParID                 ds.l   1        ; offset: $64 (100)
  440. ioFlClpSiz                 ds.l   1        ; offset: $68 (104)
  441.                          ORG 32
  442. ioDrUsrWds                 ds     DInfo    ; offset: $20 (32)
  443. ioDrDirID                 ds.l   1        ; offset: $30 (48)
  444. ioDrNmFls                 ds.w   1        ; offset: $34 (52)
  445. filler3                     ds.w   9        ; offset: $36 (54)
  446. ioDrCrDat                 ds.l   1        ; offset: $48 (72)
  447. ioDrMdDat                 ds.l   1        ; offset: $4C (76)
  448. ioDrBkDat                 ds.l   1        ; offset: $50 (80)
  449. ioDrFndrInfo             ds     DXInfo    ; offset: $54 (84)
  450. ioDrParID                 ds.l   1        ; offset: $64 (100)
  451.                          ORG 108
  452. sizeof                     EQU *            ; size:   $6C (108)
  453.                         ENDR
  454.  
  455. ; typedef struct CInfoPBRec  CInfoPBRec, *CInfoPBPtr
  456. CatPositionRec             RECORD    0
  457. initialize                 ds.l   1        ; offset: $0 (0)
  458. priv                     ds.w   6        ; offset: $4 (4)
  459. sizeof                     EQU *            ; size:   $10 (16)
  460.                         ENDR
  461.  
  462. ; typedef struct CatPositionRec  CatPositionRec
  463. FSSpec                     RECORD    0
  464. vRefNum                     ds.w   1        ; offset: $0 (0)
  465. parID                     ds.l   1        ; offset: $2 (2)
  466. name                     ds.l   16        ; offset: $6 (6)
  467. sizeof                     EQU *            ; size:   $46 (70)
  468.                         ENDR
  469.  
  470. ; typedef struct FSSpec     FSSpec
  471. ; typedef FSSpec             *FSSpecPtr, **FSSpecHandle
  472. ; pointer to array of FSSpecs 
  473. ; typedef FSSpecPtr         FSSpecArrayPtr
  474. ; The only difference between "const FSSpec*" and "ConstFSSpecPtr" is 
  475. ;   that as a parameter, ConstFSSpecPtr is allowed to be NULL 
  476. ; typedef const FSSpec         *ConstFSSpecPtr
  477. ; The following are structures to be filled out with the _GetVolMountInfo call
  478. ; and passed back into the _VolumeMount call for external file system mounts. 
  479. ; the "signature" of the file system 
  480. ; typedef OSType             VolumeType
  481.  
  482. ; the signature for AppleShare 
  483. AppleShareMediaType                EQU        'afpm'
  484.  
  485. VolMountInfoHeader         RECORD    0
  486. length                     ds.w   1        ; offset: $0 (0)        ; length of location data (including self) 
  487. media                     ds.l   1        ; offset: $2 (2)        ; type of media.  Variable length data follows 
  488. sizeof                     EQU *            ; size:   $6 (6)
  489.                         ENDR
  490.  
  491. ; typedef struct VolMountInfoHeader  VolMountInfoHeader
  492. ; typedef VolMountInfoHeader  *VolMountInfoPtr
  493. AFPVolMountInfo         RECORD    0
  494. length                     ds.w   1        ; offset: $0 (0)        ; length of location data (including self) 
  495. media                     ds.l   1        ; offset: $2 (2)        ; type of media 
  496. flags                     ds.w   1        ; offset: $6 (6)        ; bits for no messages, no reconnect 
  497. nbpInterval                 ds.b   1        ; offset: $8 (8)        ; NBP Interval parameter (IM2, p.322) 
  498. nbpCount                 ds.b   1        ; offset: $9 (9)        ; NBP Interval parameter (IM2, p.322) 
  499. uamType                     ds.w   1        ; offset: $A (10)        ; User Authentication Method 
  500. zoneNameOffset             ds.w   1        ; offset: $C (12)        ; short positive offset from start of struct to Zone Name 
  501. serverNameOffset         ds.w   1        ; offset: $E (14)        ; offset to pascal Server Name string 
  502. volNameOffset             ds.w   1        ; offset: $10 (16)        ; offset to pascal Volume Name string 
  503. userNameOffset             ds.w   1        ; offset: $12 (18)        ; offset to pascal User Name string 
  504. userPasswordOffset         ds.w   1        ; offset: $14 (20)        ; offset to pascal User Password string 
  505. volPasswordOffset         ds.w   1        ; offset: $16 (22)        ; offset to pascal Volume Password string 
  506. AFPData                     ds.b   144        ; offset: $18 (24)        ; variable length data may follow 
  507. sizeof                     EQU *            ; size:   $A8 (168)
  508.                         ENDR
  509.  
  510. ; typedef struct AFPVolMountInfo  AFPVolMountInfo
  511. ; typedef AFPVolMountInfo     *AFPVolMountInfoPtr
  512. DTPBRec                 RECORD    0
  513. qLink                     ds.l   1        ; offset: $0 (0)
  514. qType                     ds.w   1        ; offset: $4 (4)
  515. ioTrap                     ds.w   1        ; offset: $6 (6)
  516. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  517. ioCompletion             ds.l   1        ; offset: $C (12)
  518. ioResult                 ds.w   1        ; offset: $10 (16)
  519. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  520. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  521. ioDTRefNum                 ds.w   1        ; offset: $18 (24)        ; desktop refnum 
  522. ioIndex                     ds.w   1        ; offset: $1A (26)
  523. ioTagInfo                 ds.l   1        ; offset: $1C (28)
  524. ioDTBuffer                 ds.l   1        ; offset: $20 (32)
  525. ioDTReqCount             ds.l   1        ; offset: $24 (36)
  526. ioDTActCount             ds.l   1        ; offset: $28 (40)
  527. ioFiller1                 ds.b   1        ; offset: $2C (44)
  528. ioIconType                 ds.b   1        ; offset: $2D (45)
  529. ioFiller2                 ds.w   1        ; offset: $2E (46)
  530. ioDirID                     ds.l   1        ; offset: $30 (48)
  531. ioFileCreator             ds.l   1        ; offset: $34 (52)
  532. ioFileType                 ds.l   1        ; offset: $38 (56)
  533. ioFiller3                 ds.l   1        ; offset: $3C (60)
  534. ioDTLgLen                 ds.l   1        ; offset: $40 (64)
  535. ioDTPyLen                 ds.l   1        ; offset: $44 (68)
  536. ioFiller4                 ds.w   14        ; offset: $48 (72)
  537. ioAPPLParID                 ds.l   1        ; offset: $64 (100)
  538. sizeof                     EQU *            ; size:   $68 (104)
  539.                         ENDR
  540.  
  541. ; typedef struct DTPBRec     DTPBRec
  542. ; typedef DTPBRec             *DTPBPtr
  543. HIOParam                 RECORD    0
  544. qLink                     ds.l   1        ; offset: $0 (0)
  545. qType                     ds.w   1        ; offset: $4 (4)
  546. ioTrap                     ds.w   1        ; offset: $6 (6)
  547. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  548. ioCompletion             ds.l   1        ; offset: $C (12)
  549. ioResult                 ds.w   1        ; offset: $10 (16)
  550. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  551. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  552. ioRefNum                 ds.w   1        ; offset: $18 (24)
  553. ioVersNum                 ds.b   1        ; offset: $1A (26)
  554. ioPermssn                 ds.b   1        ; offset: $1B (27)
  555. ioMisc                     ds.l   1        ; offset: $1C (28)
  556. ioBuffer                 ds.l   1        ; offset: $20 (32)
  557. ioReqCount                 ds.l   1        ; offset: $24 (36)
  558. ioActCount                 ds.l   1        ; offset: $28 (40)
  559. ioPosMode                 ds.w   1        ; offset: $2C (44)
  560. ioPosOffset                 ds.l   1        ; offset: $2E (46)
  561. sizeof                     EQU *            ; size:   $32 (50)
  562.                         ENDR
  563.  
  564. ; typedef struct HIOParam     HIOParam, *HIOParamPtr
  565. HFileParam                 RECORD    0
  566. qLink                     ds.l   1        ; offset: $0 (0)
  567. qType                     ds.w   1        ; offset: $4 (4)
  568. ioTrap                     ds.w   1        ; offset: $6 (6)
  569. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  570. ioCompletion             ds.l   1        ; offset: $C (12)
  571. ioResult                 ds.w   1        ; offset: $10 (16)
  572. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  573. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  574. ioFRefNum                 ds.w   1        ; offset: $18 (24)
  575. ioFVersNum                 ds.b   1        ; offset: $1A (26)
  576. filler1                     ds.b   1        ; offset: $1B (27)
  577. ioFDirIndex                 ds.w   1        ; offset: $1C (28)
  578. ioFlAttrib                 ds.b   1        ; offset: $1E (30)
  579. ioFlVersNum                 ds.b   1        ; offset: $1F (31)
  580. ioFlFndrInfo             ds     FInfo    ; offset: $20 (32)
  581. ioDirID                     ds.l   1        ; offset: $30 (48)
  582. ioFlStBlk                 ds.w   1        ; offset: $34 (52)
  583. ioFlLgLen                 ds.l   1        ; offset: $36 (54)
  584. ioFlPyLen                 ds.l   1        ; offset: $3A (58)
  585. ioFlRStBlk                 ds.w   1        ; offset: $3E (62)
  586. ioFlRLgLen                 ds.l   1        ; offset: $40 (64)
  587. ioFlRPyLen                 ds.l   1        ; offset: $44 (68)
  588. ioFlCrDat                 ds.l   1        ; offset: $48 (72)
  589. ioFlMdDat                 ds.l   1        ; offset: $4C (76)
  590. sizeof                     EQU *            ; size:   $50 (80)
  591.                         ENDR
  592.  
  593. ; typedef struct HFileParam  HFileParam, *HFileParamPtr
  594. HVolumeParam             RECORD    0
  595. qLink                     ds.l   1        ; offset: $0 (0)
  596. qType                     ds.w   1        ; offset: $4 (4)
  597. ioTrap                     ds.w   1        ; offset: $6 (6)
  598. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  599. ioCompletion             ds.l   1        ; offset: $C (12)
  600. ioResult                 ds.w   1        ; offset: $10 (16)
  601. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  602. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  603. filler2                     ds.l   1        ; offset: $18 (24)
  604. ioVolIndex                 ds.w   1        ; offset: $1C (28)
  605. ioVCrDate                 ds.l   1        ; offset: $1E (30)
  606. ioVLsMod                 ds.l   1        ; offset: $22 (34)
  607. ioVAtrb                     ds.w   1        ; offset: $26 (38)
  608. ioVNmFls                 ds.w   1        ; offset: $28 (40)
  609. ioVBitMap                 ds.w   1        ; offset: $2A (42)
  610. ioAllocPtr                 ds.w   1        ; offset: $2C (44)
  611. ioVNmAlBlks                 ds.w   1        ; offset: $2E (46)
  612. ioVAlBlkSiz                 ds.l   1        ; offset: $30 (48)
  613. ioVClpSiz                 ds.l   1        ; offset: $34 (52)
  614. ioAlBlSt                 ds.w   1        ; offset: $38 (56)
  615. ioVNxtCNID                 ds.l   1        ; offset: $3A (58)
  616. ioVFrBlk                 ds.w   1        ; offset: $3E (62)
  617. ioVSigWord                 ds.w   1        ; offset: $40 (64)
  618. ioVDrvInfo                 ds.w   1        ; offset: $42 (66)
  619. ioVDRefNum                 ds.w   1        ; offset: $44 (68)
  620. ioVFSID                     ds.w   1        ; offset: $46 (70)
  621. ioVBkUp                     ds.l   1        ; offset: $48 (72)
  622. ioVSeqNum                 ds.w   1        ; offset: $4C (76)
  623. ioVWrCnt                 ds.l   1        ; offset: $4E (78)
  624. ioVFilCnt                 ds.l   1        ; offset: $52 (82)
  625. ioVDirCnt                 ds.l   1        ; offset: $56 (86)
  626. ioVFndrInfo                 ds.l   8        ; offset: $5A (90)
  627. sizeof                     EQU *            ; size:   $7A (122)
  628.                         ENDR
  629.  
  630. ; typedef struct HVolumeParam  HVolumeParam, *HVolumeParamPtr
  631. AccessParam             RECORD    0
  632. qLink                     ds.l   1        ; offset: $0 (0)
  633. qType                     ds.w   1        ; offset: $4 (4)
  634. ioTrap                     ds.w   1        ; offset: $6 (6)
  635. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  636. ioCompletion             ds.l   1        ; offset: $C (12)
  637. ioResult                 ds.w   1        ; offset: $10 (16)
  638. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  639. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  640. filler3                     ds.w   1        ; offset: $18 (24)
  641. ioDenyModes                 ds.w   1        ; offset: $1A (26)
  642. filler4                     ds.w   1        ; offset: $1C (28)
  643. filler5                     ds.b   1        ; offset: $1E (30)
  644. ioACUser                 ds.b   1        ; offset: $1F (31)
  645. filler6                     ds.l   1        ; offset: $20 (32)
  646. ioACOwnerID                 ds.l   1        ; offset: $24 (36)
  647. ioACGroupID                 ds.l   1        ; offset: $28 (40)
  648. ioACAccess                 ds.l   1        ; offset: $2C (44)
  649. ioDirID                     ds.l   1        ; offset: $30 (48)
  650. sizeof                     EQU *            ; size:   $34 (52)
  651.                         ENDR
  652.  
  653. ; typedef struct AccessParam  AccessParam, *AccessParamPtr
  654. ObjParam                 RECORD    0
  655. qLink                     ds.l   1        ; offset: $0 (0)
  656. qType                     ds.w   1        ; offset: $4 (4)
  657. ioTrap                     ds.w   1        ; offset: $6 (6)
  658. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  659. ioCompletion             ds.l   1        ; offset: $C (12)
  660. ioResult                 ds.w   1        ; offset: $10 (16)
  661. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  662. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  663. filler7                     ds.w   1        ; offset: $18 (24)
  664. ioObjType                 ds.w   1        ; offset: $1A (26)
  665. ioObjNamePtr             ds.l   1        ; offset: $1C (28)
  666. ioObjID                     ds.l   1        ; offset: $20 (32)
  667. sizeof                     EQU *            ; size:   $24 (36)
  668.                         ENDR
  669.  
  670. ; typedef struct ObjParam     ObjParam, *ObjParamPtr
  671. CopyParam                 RECORD    0
  672. qLink                     ds.l   1        ; offset: $0 (0)
  673. qType                     ds.w   1        ; offset: $4 (4)
  674. ioTrap                     ds.w   1        ; offset: $6 (6)
  675. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  676. ioCompletion             ds.l   1        ; offset: $C (12)
  677. ioResult                 ds.w   1        ; offset: $10 (16)
  678. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  679. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  680. ioDstVRefNum             ds.w   1        ; offset: $18 (24)
  681. filler8                     ds.w   1        ; offset: $1A (26)
  682. ioNewName                 ds.l   1        ; offset: $1C (28)
  683. ioCopyName                 ds.l   1        ; offset: $20 (32)
  684. ioNewDirID                 ds.l   1        ; offset: $24 (36)
  685. filler14                 ds.l   1        ; offset: $28 (40)
  686. filler15                 ds.l   1        ; offset: $2C (44)
  687. ioDirID                     ds.l   1        ; offset: $30 (48)
  688. sizeof                     EQU *            ; size:   $34 (52)
  689.                         ENDR
  690.  
  691. ; typedef struct CopyParam     CopyParam, *CopyParamPtr
  692. WDParam                 RECORD    0
  693. qLink                     ds.l   1        ; offset: $0 (0)
  694. qType                     ds.w   1        ; offset: $4 (4)
  695. ioTrap                     ds.w   1        ; offset: $6 (6)
  696. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  697. ioCompletion             ds.l   1        ; offset: $C (12)
  698. ioResult                 ds.w   1        ; offset: $10 (16)
  699. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  700. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  701. filler9                     ds.w   1        ; offset: $18 (24)
  702. ioWDIndex                 ds.w   1        ; offset: $1A (26)
  703. ioWDProcID                 ds.l   1        ; offset: $1C (28)
  704. ioWDVRefNum                 ds.w   1        ; offset: $20 (32)
  705. filler10                 ds.w   1        ; offset: $22 (34)
  706. filler11                 ds.l   1        ; offset: $24 (36)
  707. filler12                 ds.l   1        ; offset: $28 (40)
  708. filler13                 ds.l   1        ; offset: $2C (44)
  709. ioWDDirID                 ds.l   1        ; offset: $30 (48)
  710. sizeof                     EQU *            ; size:   $34 (52)
  711.                         ENDR
  712.  
  713. ; typedef struct WDParam     WDParam, *WDParamPtr
  714. FIDParam                 RECORD    0
  715. qLink                     ds.l   1        ; offset: $0 (0)
  716. qType                     ds.w   1        ; offset: $4 (4)
  717. ioTrap                     ds.w   1        ; offset: $6 (6)
  718. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  719. ioCompletion             ds.l   1        ; offset: $C (12)
  720. ioResult                 ds.w   1        ; offset: $10 (16)
  721. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  722. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  723. filler14                 ds.l   1        ; offset: $18 (24)
  724. ioDestNamePtr             ds.l   1        ; offset: $1C (28)
  725. filler15                 ds.l   1        ; offset: $20 (32)
  726. ioDestDirID                 ds.l   1        ; offset: $24 (36)
  727. filler16                 ds.l   1        ; offset: $28 (40)
  728. filler17                 ds.l   1        ; offset: $2C (44)
  729. ioSrcDirID                 ds.l   1        ; offset: $30 (48)
  730. filler18                 ds.w   1        ; offset: $34 (52)
  731. ioFileID                 ds.l   1        ; offset: $36 (54)
  732. sizeof                     EQU *            ; size:   $3A (58)
  733.                         ENDR
  734.  
  735. ; typedef struct FIDParam     FIDParam, *FIDParamPtr
  736. ForeignPrivParam         RECORD    0
  737. qLink                     ds.l   1        ; offset: $0 (0)
  738. qType                     ds.w   1        ; offset: $4 (4)
  739. ioTrap                     ds.w   1        ; offset: $6 (6)
  740. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  741. ioCompletion             ds.l   1        ; offset: $C (12)
  742. ioResult                 ds.w   1        ; offset: $10 (16)
  743. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  744. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  745. ioFiller21                 ds.l   1        ; offset: $18 (24)
  746. ioFiller22                 ds.l   1        ; offset: $1C (28)
  747. ioForeignPrivBuffer         ds.l   1        ; offset: $20 (32)
  748. ioForeignPrivActCount     ds.l   1        ; offset: $24 (36)
  749. ioForeignPrivReqCount     ds.l   1        ; offset: $28 (40)
  750. ioFiller23                 ds.l   1        ; offset: $2C (44)
  751. ioForeignPrivDirID         ds.l   1        ; offset: $30 (48)
  752. ioForeignPrivInfo1         ds.l   1        ; offset: $34 (52)
  753. ioForeignPrivInfo2         ds.l   1        ; offset: $38 (56)
  754. ioForeignPrivInfo3         ds.l   1        ; offset: $3C (60)
  755. ioForeignPrivInfo4         ds.l   1        ; offset: $40 (64)
  756. sizeof                     EQU *            ; size:   $44 (68)
  757.                         ENDR
  758.  
  759. ; typedef struct ForeignPrivParam  ForeignPrivParam, *ForeignPrivParamPtr
  760. HParamBlockRec             RECORD    0
  761. qLink                     ds.l   1        ; offset: $0 (0)
  762. qType                     ds.w   1        ; offset: $4 (4)
  763. ioTrap                     ds.w   1        ; offset: $6 (6)
  764. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  765. ioCompletion             ds.l   1        ; offset: $C (12)
  766. ioResult                 ds.w   1        ; offset: $10 (16)
  767. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  768. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  769. ioRefNum                 ds.w   1        ; offset: $18 (24)
  770. ioVersNum                 ds.b   1        ; offset: $1A (26)
  771. ioPermssn                 ds.b   1        ; offset: $1B (27)
  772. ioMisc                     ds.l   1        ; offset: $1C (28)
  773. ioBuffer                 ds.l   1        ; offset: $20 (32)
  774. ioReqCount                 ds.l   1        ; offset: $24 (36)
  775. ioActCount                 ds.l   1        ; offset: $28 (40)
  776. ioPosMode                 ds.w   1        ; offset: $2C (44)
  777. ioPosOffset                 ds.l   1        ; offset: $2E (46)
  778.                          ORG 24
  779. ioFRefNum                 ds.w   1        ; offset: $18 (24)
  780. ioFVersNum                 ds.b   1        ; offset: $1A (26)
  781. filler1                     ds.b   1        ; offset: $1B (27)
  782. ioFDirIndex                 ds.w   1        ; offset: $1C (28)
  783. ioFlAttrib                 ds.b   1        ; offset: $1E (30)
  784. ioFlVersNum                 ds.b   1        ; offset: $1F (31)
  785. ioFlFndrInfo             ds     FInfo    ; offset: $20 (32)
  786. ioDirID                     ds.l   1        ; offset: $30 (48)
  787. ioFlStBlk                 ds.w   1        ; offset: $34 (52)
  788. ioFlLgLen                 ds.l   1        ; offset: $36 (54)
  789. ioFlPyLen                 ds.l   1        ; offset: $3A (58)
  790. ioFlRStBlk                 ds.w   1        ; offset: $3E (62)
  791. ioFlRLgLen                 ds.l   1        ; offset: $40 (64)
  792. ioFlRPyLen                 ds.l   1        ; offset: $44 (68)
  793. ioFlCrDat                 ds.l   1        ; offset: $48 (72)
  794. ioFlMdDat                 ds.l   1        ; offset: $4C (76)
  795.                          ORG 24
  796. filler2                     ds.l   1        ; offset: $18 (24)
  797. ioVolIndex                 ds.w   1        ; offset: $1C (28)
  798. ioVCrDate                 ds.l   1        ; offset: $1E (30)
  799. ioVLsMod                 ds.l   1        ; offset: $22 (34)
  800. ioVAtrb                     ds.w   1        ; offset: $26 (38)
  801. ioVNmFls                 ds.w   1        ; offset: $28 (40)
  802. ioVBitMap                 ds.w   1        ; offset: $2A (42)
  803. ioAllocPtr                 ds.w   1        ; offset: $2C (44)
  804. ioVNmAlBlks                 ds.w   1        ; offset: $2E (46)
  805. ioVAlBlkSiz                 ds.l   1        ; offset: $30 (48)
  806. ioVClpSiz                 ds.l   1        ; offset: $34 (52)
  807. ioAlBlSt                 ds.w   1        ; offset: $38 (56)
  808. ioVNxtCNID                 ds.l   1        ; offset: $3A (58)
  809. ioVFrBlk                 ds.w   1        ; offset: $3E (62)
  810. ioVSigWord                 ds.w   1        ; offset: $40 (64)
  811. ioVDrvInfo                 ds.w   1        ; offset: $42 (66)
  812. ioVDRefNum                 ds.w   1        ; offset: $44 (68)
  813. ioVFSID                     ds.w   1        ; offset: $46 (70)
  814. ioVBkUp                     ds.l   1        ; offset: $48 (72)
  815. ioVSeqNum                 ds.w   1        ; offset: $4C (76)
  816. ioVWrCnt                 ds.l   1        ; offset: $4E (78)
  817. ioVFilCnt                 ds.l   1        ; offset: $52 (82)
  818. ioVDirCnt                 ds.l   1        ; offset: $56 (86)
  819. ioVFndrInfo                 ds.l   8        ; offset: $5A (90)
  820.                          ORG 24
  821. filler3                     ds.w   1        ; offset: $18 (24)
  822. ioDenyModes                 ds.w   1        ; offset: $1A (26)
  823. filler4                     ds.w   1        ; offset: $1C (28)
  824. filler5                     ds.b   1        ; offset: $1E (30)
  825. ioACUser                 ds.b   1        ; offset: $1F (31)
  826. filler6                     ds.l   1        ; offset: $20 (32)
  827. ioACOwnerID                 ds.l   1        ; offset: $24 (36)
  828. ioACGroupID                 ds.l   1        ; offset: $28 (40)
  829. ioACAccess                 ds.l   1        ; offset: $2C (44)
  830.                          ORG 24
  831. filler7                     ds.w   1        ; offset: $18 (24)
  832. ioObjType                 ds.w   1        ; offset: $1A (26)
  833. ioObjNamePtr             ds.l   1        ; offset: $1C (28)
  834. ioObjID                     ds.l   1        ; offset: $20 (32)
  835.                          ORG 24
  836. ioDstVRefNum             ds.w   1        ; offset: $18 (24)
  837. filler8                     ds.w   1        ; offset: $1A (26)
  838. ioNewName                 ds.l   1        ; offset: $1C (28)
  839. ioCopyName                 ds.l   1        ; offset: $20 (32)
  840. ioNewDirID                 ds.l   1        ; offset: $24 (36)
  841.                          ORG 24
  842. filler9                     ds.w   1        ; offset: $18 (24)
  843. ioWDIndex                 ds.w   1        ; offset: $1A (26)
  844. ioWDProcID                 ds.l   1        ; offset: $1C (28)
  845. ioWDVRefNum                 ds.w   1        ; offset: $20 (32)
  846. filler10                 ds.w   1        ; offset: $22 (34)
  847. filler11                 ds.l   1        ; offset: $24 (36)
  848. filler12                 ds.l   1        ; offset: $28 (40)
  849. filler13                 ds.l   1        ; offset: $2C (44)
  850. ioWDDirID                 ds.l   1        ; offset: $30 (48)
  851.                          ORG 24
  852. filler14                 ds.l   1        ; offset: $18 (24)
  853. ioDestNamePtr             ds.l   1        ; offset: $1C (28)
  854. filler15                 ds.l   1        ; offset: $20 (32)
  855. ioDestDirID                 ds.l   1        ; offset: $24 (36)
  856. filler16                 ds.l   1        ; offset: $28 (40)
  857. filler17                 ds.l   1        ; offset: $2C (44)
  858. ioSrcDirID                 ds.l   1        ; offset: $30 (48)
  859. filler18                 ds.w   1        ; offset: $34 (52)
  860. ioFileID                 ds.l   1        ; offset: $36 (54)
  861.                          ORG 24
  862. ioMatchPtr                 ds.l   1        ; offset: $18 (24)
  863. ioReqMatchCount             ds.l   1        ; offset: $1C (28)
  864. ioActMatchCount             ds.l   1        ; offset: $20 (32)
  865. ioSearchBits             ds.l   1        ; offset: $24 (36)
  866. ioSearchInfo1             ds.l   1        ; offset: $28 (40)
  867. ioSearchInfo2             ds.l   1        ; offset: $2C (44)
  868. ioSearchTime             ds.l   1        ; offset: $30 (48)
  869. ioCatPosition             ds     CatPositionRec ; offset: $34 (52)
  870. ioOptBuffer                 ds.l   1        ; offset: $44 (68)
  871. ioOptBufSize             ds.l   1        ; offset: $48 (72)
  872.                          ORG 24
  873. ioFiller21                 ds.l   1        ; offset: $18 (24)
  874. ioFiller22                 ds.l   1        ; offset: $1C (28)
  875. ioForeignPrivBuffer         ds.l   1        ; offset: $20 (32)
  876. ioForeignPrivActCount     ds.l   1        ; offset: $24 (36)
  877. ioForeignPrivReqCount     ds.l   1        ; offset: $28 (40)
  878. ioFiller23                 ds.l   1        ; offset: $2C (44)
  879. ioForeignPrivDirID         ds.l   1        ; offset: $30 (48)
  880. ioForeignPrivInfo1         ds.l   1        ; offset: $34 (52)
  881. ioForeignPrivInfo2         ds.l   1        ; offset: $38 (56)
  882. ioForeignPrivInfo3         ds.l   1        ; offset: $3C (60)
  883. ioForeignPrivInfo4         ds.l   1        ; offset: $40 (64)
  884.                          ORG 122
  885. sizeof                     EQU *            ; size:   $7A (122)
  886.                         ENDR
  887.  
  888. ; typedef HParamBlockRec     *HParmBlkPtr
  889. CMovePBRec                 RECORD    0
  890. qLink                     ds.l   1        ; offset: $0 (0)
  891. qType                     ds.w   1        ; offset: $4 (4)
  892. ioTrap                     ds.w   1        ; offset: $6 (6)
  893. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  894. ioCompletion             ds.l   1        ; offset: $C (12)
  895. ioResult                 ds.w   1        ; offset: $10 (16)
  896. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  897. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  898. filler1                     ds.l   1        ; offset: $18 (24)
  899. ioNewName                 ds.l   1        ; offset: $1C (28)
  900. filler2                     ds.l   1        ; offset: $20 (32)
  901. ioNewDirID                 ds.l   1        ; offset: $24 (36)
  902. filler3                     ds.l   2        ; offset: $28 (40)
  903. ioDirID                     ds.l   1        ; offset: $30 (48)
  904. sizeof                     EQU *            ; size:   $34 (52)
  905.                         ENDR
  906.  
  907. ; typedef struct CMovePBRec  CMovePBRec
  908. ; typedef CMovePBRec         *CMovePBPtr
  909. WDPBRec                 RECORD    0
  910. qLink                     ds.l   1        ; offset: $0 (0)
  911. qType                     ds.w   1        ; offset: $4 (4)
  912. ioTrap                     ds.w   1        ; offset: $6 (6)
  913. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  914. ioCompletion             ds.l   1        ; offset: $C (12)
  915. ioResult                 ds.w   1        ; offset: $10 (16)
  916. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  917. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  918. filler1                     ds.w   1        ; offset: $18 (24)
  919. ioWDIndex                 ds.w   1        ; offset: $1A (26)
  920. ioWDProcID                 ds.l   1        ; offset: $1C (28)
  921. ioWDVRefNum                 ds.w   1        ; offset: $20 (32)
  922. filler2                     ds.w   7        ; offset: $22 (34)
  923. ioWDDirID                 ds.l   1        ; offset: $30 (48)
  924. sizeof                     EQU *            ; size:   $34 (52)
  925.                         ENDR
  926.  
  927. ; typedef struct WDPBRec     WDPBRec
  928. ; typedef WDPBRec             *WDPBPtr
  929. FCBPBRec                 RECORD    0
  930. qLink                     ds.l   1        ; offset: $0 (0)
  931. qType                     ds.w   1        ; offset: $4 (4)
  932. ioTrap                     ds.w   1        ; offset: $6 (6)
  933. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  934. ioCompletion             ds.l   1        ; offset: $C (12)
  935. ioResult                 ds.w   1        ; offset: $10 (16)
  936. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  937. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  938. ioRefNum                 ds.w   1        ; offset: $18 (24)
  939. filler                     ds.w   1        ; offset: $1A (26)
  940. ioFCBIndx                 ds.w   1        ; offset: $1C (28)
  941. filler1                     ds.w   1        ; offset: $1E (30)
  942. ioFCBFlNm                 ds.l   1        ; offset: $20 (32)
  943. ioFCBFlags                 ds.w   1        ; offset: $24 (36)
  944. ioFCBStBlk                 ds.w   1        ; offset: $26 (38)
  945. ioFCBEOF                 ds.l   1        ; offset: $28 (40)
  946. ioFCBPLen                 ds.l   1        ; offset: $2C (44)
  947. ioFCBCrPs                 ds.l   1        ; offset: $30 (48)
  948. ioFCBVRefNum             ds.w   1        ; offset: $34 (52)
  949. ioFCBClpSiz                 ds.l   1        ; offset: $36 (54)
  950. ioFCBParID                 ds.l   1        ; offset: $3A (58)
  951. sizeof                     EQU *            ; size:   $3E (62)
  952.                         ENDR
  953.  
  954. ; typedef struct FCBPBRec     FCBPBRec
  955. ; typedef FCBPBRec             *FCBPBPtr
  956. VCB                     RECORD    0
  957. qLink                     ds.l   1        ; offset: $0 (0)
  958. qType                     ds.w   1        ; offset: $4 (4)
  959. vcbFlags                 ds.w   1        ; offset: $6 (6)
  960. vcbSigWord                 ds.w   1        ; offset: $8 (8)
  961. vcbCrDate                 ds.l   1        ; offset: $A (10)
  962. vcbLsMod                 ds.l   1        ; offset: $E (14)
  963. vcbAtrb                     ds.w   1        ; offset: $12 (18)
  964. vcbNmFls                 ds.w   1        ; offset: $14 (20)
  965. vcbVBMSt                 ds.w   1        ; offset: $16 (22)
  966. vcbAllocPtr                 ds.w   1        ; offset: $18 (24)
  967. vcbNmAlBlks                 ds.w   1        ; offset: $1A (26)
  968. vcbAlBlkSiz                 ds.l   1        ; offset: $1C (28)
  969. vcbClpSiz                 ds.l   1        ; offset: $20 (32)
  970. vcbAlBlSt                 ds.w   1        ; offset: $24 (36)
  971. vcbNxtCNID                 ds.l   1        ; offset: $26 (38)
  972. vcbFreeBks                 ds.w   1        ; offset: $2A (42)
  973. vcbVN                     ds.l   7        ; offset: $2C (44)
  974. vcbDrvNum                 ds.w   1        ; offset: $48 (72)
  975. vcbDRefNum                 ds.w   1        ; offset: $4A (74)
  976. vcbFSID                     ds.w   1        ; offset: $4C (76)
  977. vcbVRefNum                 ds.w   1        ; offset: $4E (78)
  978. vcbMAdr                     ds.l   1        ; offset: $50 (80)
  979. vcbBufAdr                 ds.l   1        ; offset: $54 (84)
  980. vcbMLen                     ds.w   1        ; offset: $58 (88)
  981. vcbDirIndex                 ds.w   1        ; offset: $5A (90)
  982. vcbDirBlk                 ds.w   1        ; offset: $5C (92)
  983. vcbVolBkUp                 ds.l   1        ; offset: $5E (94)
  984. vcbVSeqNum                 ds.w   1        ; offset: $62 (98)
  985. vcbWrCnt                 ds.l   1        ; offset: $64 (100)
  986. vcbXTClpSiz                 ds.l   1        ; offset: $68 (104)
  987. vcbCTClpSiz                 ds.l   1        ; offset: $6C (108)
  988. vcbNmRtDirs                 ds.w   1        ; offset: $70 (112)
  989. vcbFilCnt                 ds.l   1        ; offset: $72 (114)
  990. vcbDirCnt                 ds.l   1        ; offset: $76 (118)
  991. vcbFndrInfo                 ds.l   8        ; offset: $7A (122)
  992. vcbVCSize                 ds.w   1        ; offset: $9A (154)
  993. vcbVBMCSiz                 ds.w   1        ; offset: $9C (156)
  994. vcbCtlCSiz                 ds.w   1        ; offset: $9E (158)
  995. vcbXTAlBlks                 ds.w   1        ; offset: $A0 (160)
  996. vcbCTAlBlks                 ds.w   1        ; offset: $A2 (162)
  997. vcbXTRef                 ds.w   1        ; offset: $A4 (164)
  998. vcbCTRef                 ds.w   1        ; offset: $A6 (166)
  999. vcbCtlBuf                 ds.l   1        ; offset: $A8 (168)
  1000. vcbDirIDM                 ds.l   1        ; offset: $AC (172)
  1001. vcbOffsM                 ds.w   1        ; offset: $B0 (176)
  1002. sizeof                     EQU *            ; size:   $B2 (178)
  1003.                         ENDR
  1004.  
  1005. ; typedef struct VCB         VCB
  1006. DrvQEl                     RECORD    0
  1007. qLink                     ds.l   1        ; offset: $0 (0)
  1008. qType                     ds.w   1        ; offset: $4 (4)
  1009. dQDrive                     ds.w   1        ; offset: $6 (6)
  1010. dQRefNum                 ds.w   1        ; offset: $8 (8)
  1011. dQFSID                     ds.w   1        ; offset: $A (10)
  1012. dQDrvSz                     ds.w   1        ; offset: $C (12)
  1013. dQDrvSz2                 ds.w   1        ; offset: $E (14)
  1014. sizeof                     EQU *            ; size:   $10 (16)
  1015.                         ENDR
  1016.  
  1017. ; typedef struct DrvQEl     DrvQEl
  1018. ; typedef DrvQEl             *DrvQElPtr
  1019. ;
  1020. ; pascal OSErr PBOpenSync(ParmBlkPtr paramBlock)
  1021. ;
  1022.     IF ¬ GENERATINGCFM THEN
  1023.         ; parameters: 
  1024.         ;     paramBlock        => A0
  1025.         ; returns: 
  1026.         ;     OSErr             <= D0
  1027.         _PBOpenSync:    OPWORD    $A000
  1028.     ELSE
  1029.         IMPORT_CFM_FUNCTION    PBOpenSync
  1030.     ENDIF
  1031.  
  1032. ;
  1033. ; pascal OSErr PBOpenAsync(ParmBlkPtr paramBlock)
  1034. ;
  1035.     IF ¬ GENERATINGCFM THEN
  1036.         ; parameters: 
  1037.         ;     paramBlock        => A0
  1038.         ; returns: 
  1039.         ;     OSErr             <= D0
  1040.         _PBOpenAsync:    OPWORD    $A400
  1041.     ELSE
  1042.         IMPORT_CFM_FUNCTION    PBOpenAsync
  1043.     ENDIF
  1044.  
  1045. ;
  1046. ; pascal OSErr PBOpenImmed(ParmBlkPtr paramBlock)
  1047. ;
  1048.     IF ¬ GENERATINGCFM THEN
  1049.         ; parameters: 
  1050.         ;     paramBlock        => A0
  1051.         ; returns: 
  1052.         ;     OSErr             <= D0
  1053.         _PBOpenImmed:    OPWORD    $A200
  1054.     ELSE
  1055.         IMPORT_CFM_FUNCTION    PBOpenImmed
  1056.     ENDIF
  1057.  
  1058. ;
  1059. ; pascal OSErr PBCloseSync(ParmBlkPtr paramBlock)
  1060. ;
  1061.     IF ¬ GENERATINGCFM THEN
  1062.         ; parameters: 
  1063.         ;     paramBlock        => A0
  1064.         ; returns: 
  1065.         ;     OSErr             <= D0
  1066.         _PBCloseSync:    OPWORD    $A001
  1067.     ELSE
  1068.         IMPORT_CFM_FUNCTION    PBCloseSync
  1069.     ENDIF
  1070.  
  1071. ;
  1072. ; pascal OSErr PBCloseAsync(ParmBlkPtr paramBlock)
  1073. ;
  1074.     IF ¬ GENERATINGCFM THEN
  1075.         ; parameters: 
  1076.         ;     paramBlock        => A0
  1077.         ; returns: 
  1078.         ;     OSErr             <= D0
  1079.         _PBCloseAsync:    OPWORD    $A401
  1080.     ELSE
  1081.         IMPORT_CFM_FUNCTION    PBCloseAsync
  1082.     ENDIF
  1083.  
  1084. ;
  1085. ; pascal OSErr PBCloseImmed(ParmBlkPtr paramBlock)
  1086. ;
  1087.     IF ¬ GENERATINGCFM THEN
  1088.         ; parameters: 
  1089.         ;     paramBlock        => A0
  1090.         ; returns: 
  1091.         ;     OSErr             <= D0
  1092.         _PBCloseImmed:    OPWORD    $A201
  1093.     ELSE
  1094.         IMPORT_CFM_FUNCTION    PBCloseImmed
  1095.     ENDIF
  1096.  
  1097. ;
  1098. ; pascal OSErr PBReadSync(ParmBlkPtr paramBlock)
  1099. ;
  1100.     IF ¬ GENERATINGCFM THEN
  1101.         ; parameters: 
  1102.         ;     paramBlock        => A0
  1103.         ; returns: 
  1104.         ;     OSErr             <= D0
  1105.         _PBReadSync:    OPWORD    $A002
  1106.     ELSE
  1107.         IMPORT_CFM_FUNCTION    PBReadSync
  1108.     ENDIF
  1109.  
  1110. ;
  1111. ; pascal OSErr PBReadAsync(ParmBlkPtr paramBlock)
  1112. ;
  1113.     IF ¬ GENERATINGCFM THEN
  1114.         ; parameters: 
  1115.         ;     paramBlock        => A0
  1116.         ; returns: 
  1117.         ;     OSErr             <= D0
  1118.         _PBReadAsync:    OPWORD    $A402
  1119.     ELSE
  1120.         IMPORT_CFM_FUNCTION    PBReadAsync
  1121.     ENDIF
  1122.  
  1123. ;
  1124. ; pascal OSErr PBReadImmed(ParmBlkPtr paramBlock)
  1125. ;
  1126.     IF ¬ GENERATINGCFM THEN
  1127.         ; parameters: 
  1128.         ;     paramBlock        => A0
  1129.         ; returns: 
  1130.         ;     OSErr             <= D0
  1131.         _PBReadImmed:    OPWORD    $A202
  1132.     ELSE
  1133.         IMPORT_CFM_FUNCTION    PBReadImmed
  1134.     ENDIF
  1135.  
  1136. ;
  1137. ; pascal OSErr PBWriteSync(ParmBlkPtr paramBlock)
  1138. ;
  1139.     IF ¬ GENERATINGCFM THEN
  1140.         ; parameters: 
  1141.         ;     paramBlock        => A0
  1142.         ; returns: 
  1143.         ;     OSErr             <= D0
  1144.         _PBWriteSync:    OPWORD    $A003
  1145.     ELSE
  1146.         IMPORT_CFM_FUNCTION    PBWriteSync
  1147.     ENDIF
  1148.  
  1149. ;
  1150. ; pascal OSErr PBWriteAsync(ParmBlkPtr paramBlock)
  1151. ;
  1152.     IF ¬ GENERATINGCFM THEN
  1153.         ; parameters: 
  1154.         ;     paramBlock        => A0
  1155.         ; returns: 
  1156.         ;     OSErr             <= D0
  1157.         _PBWriteAsync:    OPWORD    $A403
  1158.     ELSE
  1159.         IMPORT_CFM_FUNCTION    PBWriteAsync
  1160.     ENDIF
  1161.  
  1162. ;
  1163. ; pascal OSErr PBWriteImmed(ParmBlkPtr paramBlock)
  1164. ;
  1165.     IF ¬ GENERATINGCFM THEN
  1166.         ; parameters: 
  1167.         ;     paramBlock        => A0
  1168.         ; returns: 
  1169.         ;     OSErr             <= D0
  1170.         _PBWriteImmed:    OPWORD    $A203
  1171.     ELSE
  1172.         IMPORT_CFM_FUNCTION    PBWriteImmed
  1173.     ENDIF
  1174.  
  1175. ;
  1176. ; pascal OSErr PBGetVInfoSync(ParmBlkPtr paramBlock)
  1177. ;
  1178.     IF ¬ GENERATINGCFM THEN
  1179.         ; parameters: 
  1180.         ;     paramBlock        => A0
  1181.         ; returns: 
  1182.         ;     OSErr             <= D0
  1183.         _PBGetVInfoSync:    OPWORD    $A007
  1184.     ELSE
  1185.         IMPORT_CFM_FUNCTION    PBGetVInfoSync
  1186.     ENDIF
  1187.  
  1188. ;
  1189. ; pascal OSErr PBGetVInfoAsync(ParmBlkPtr paramBlock)
  1190. ;
  1191.     IF ¬ GENERATINGCFM THEN
  1192.         ; parameters: 
  1193.         ;     paramBlock        => A0
  1194.         ; returns: 
  1195.         ;     OSErr             <= D0
  1196.         _PBGetVInfoAsync:    OPWORD    $A407
  1197.     ELSE
  1198.         IMPORT_CFM_FUNCTION    PBGetVInfoAsync
  1199.     ENDIF
  1200.  
  1201. ;
  1202. ; pascal OSErr PBGetVolSync(ParmBlkPtr paramBlock)
  1203. ;
  1204.     IF ¬ GENERATINGCFM THEN
  1205.         ; parameters: 
  1206.         ;     paramBlock        => A0
  1207.         ; returns: 
  1208.         ;     OSErr             <= D0
  1209.         _PBGetVolSync:    OPWORD    $A014
  1210.     ELSE
  1211.         IMPORT_CFM_FUNCTION    PBGetVolSync
  1212.     ENDIF
  1213.  
  1214. ;
  1215. ; pascal OSErr PBGetVolAsync(ParmBlkPtr paramBlock)
  1216. ;
  1217.     IF ¬ GENERATINGCFM THEN
  1218.         ; parameters: 
  1219.         ;     paramBlock        => A0
  1220.         ; returns: 
  1221.         ;     OSErr             <= D0
  1222.         _PBGetVolAsync:    OPWORD    $A414
  1223.     ELSE
  1224.         IMPORT_CFM_FUNCTION    PBGetVolAsync
  1225.     ENDIF
  1226.  
  1227. ;
  1228. ; pascal OSErr PBSetVolSync(ParmBlkPtr paramBlock)
  1229. ;
  1230.     IF ¬ GENERATINGCFM THEN
  1231.         ; parameters: 
  1232.         ;     paramBlock        => A0
  1233.         ; returns: 
  1234.         ;     OSErr             <= D0
  1235.         _PBSetVolSync:    OPWORD    $A015
  1236.     ELSE
  1237.         IMPORT_CFM_FUNCTION    PBSetVolSync
  1238.     ENDIF
  1239.  
  1240. ;
  1241. ; pascal OSErr PBSetVolAsync(ParmBlkPtr paramBlock)
  1242. ;
  1243.     IF ¬ GENERATINGCFM THEN
  1244.         ; parameters: 
  1245.         ;     paramBlock        => A0
  1246.         ; returns: 
  1247.         ;     OSErr             <= D0
  1248.         _PBSetVolAsync:    OPWORD    $A415
  1249.     ELSE
  1250.         IMPORT_CFM_FUNCTION    PBSetVolAsync
  1251.     ENDIF
  1252.  
  1253. ;
  1254. ; pascal OSErr PBFlushVolSync(ParmBlkPtr paramBlock)
  1255. ;
  1256.     IF ¬ GENERATINGCFM THEN
  1257.         ; parameters: 
  1258.         ;     paramBlock        => A0
  1259.         ; returns: 
  1260.         ;     OSErr             <= D0
  1261.         _PBFlushVolSync:    OPWORD    $A013
  1262.     ELSE
  1263.         IMPORT_CFM_FUNCTION    PBFlushVolSync
  1264.     ENDIF
  1265.  
  1266. ;
  1267. ; pascal OSErr PBFlushVolAsync(ParmBlkPtr paramBlock)
  1268. ;
  1269.     IF ¬ GENERATINGCFM THEN
  1270.         ; parameters: 
  1271.         ;     paramBlock        => A0
  1272.         ; returns: 
  1273.         ;     OSErr             <= D0
  1274.         _PBFlushVolAsync:    OPWORD    $A413
  1275.     ELSE
  1276.         IMPORT_CFM_FUNCTION    PBFlushVolAsync
  1277.     ENDIF
  1278.  
  1279. ;
  1280. ; pascal OSErr PBCreateSync(ParmBlkPtr paramBlock)
  1281. ;
  1282.     IF ¬ GENERATINGCFM THEN
  1283.         ; parameters: 
  1284.         ;     paramBlock        => A0
  1285.         ; returns: 
  1286.         ;     OSErr             <= D0
  1287.         _PBCreateSync:    OPWORD    $A008
  1288.     ELSE
  1289.         IMPORT_CFM_FUNCTION    PBCreateSync
  1290.     ENDIF
  1291.  
  1292. ;
  1293. ; pascal OSErr PBCreateAsync(ParmBlkPtr paramBlock)
  1294. ;
  1295.     IF ¬ GENERATINGCFM THEN
  1296.         ; parameters: 
  1297.         ;     paramBlock        => A0
  1298.         ; returns: 
  1299.         ;     OSErr             <= D0
  1300.         _PBCreateAsync:    OPWORD    $A408
  1301.     ELSE
  1302.         IMPORT_CFM_FUNCTION    PBCreateAsync
  1303.     ENDIF
  1304.  
  1305. ;
  1306. ; pascal OSErr PBDeleteSync(ParmBlkPtr paramBlock)
  1307. ;
  1308.     IF ¬ GENERATINGCFM THEN
  1309.         ; parameters: 
  1310.         ;     paramBlock        => A0
  1311.         ; returns: 
  1312.         ;     OSErr             <= D0
  1313.         _PBDeleteSync:    OPWORD    $A009
  1314.     ELSE
  1315.         IMPORT_CFM_FUNCTION    PBDeleteSync
  1316.     ENDIF
  1317.  
  1318. ;
  1319. ; pascal OSErr PBDeleteAsync(ParmBlkPtr paramBlock)
  1320. ;
  1321.     IF ¬ GENERATINGCFM THEN
  1322.         ; parameters: 
  1323.         ;     paramBlock        => A0
  1324.         ; returns: 
  1325.         ;     OSErr             <= D0
  1326.         _PBDeleteAsync:    OPWORD    $A409
  1327.     ELSE
  1328.         IMPORT_CFM_FUNCTION    PBDeleteAsync
  1329.     ENDIF
  1330.  
  1331. ;
  1332. ; pascal OSErr PBOpenDFSync(ParmBlkPtr paramBlock)
  1333. ;
  1334.     IF ¬ GENERATINGCFM THEN
  1335.         ; parameters: 
  1336.         ;     paramBlock        => A0
  1337.         ; returns: 
  1338.         ;     OSErr             <= D0
  1339.         Macro
  1340.         _PBOpenDFSync
  1341.             moveq    #26,d0
  1342.             dc.w     $A060
  1343.         EndM
  1344.     ELSE
  1345.         IMPORT_CFM_FUNCTION    PBOpenDFSync
  1346.     ENDIF
  1347.  
  1348. ;
  1349. ; pascal OSErr PBOpenDFAsync(ParmBlkPtr paramBlock)
  1350. ;
  1351.     IF ¬ GENERATINGCFM THEN
  1352.         ; parameters: 
  1353.         ;     paramBlock        => A0
  1354.         ; returns: 
  1355.         ;     OSErr             <= D0
  1356.         Macro
  1357.         _PBOpenDFAsync
  1358.             moveq    #26,d0
  1359.             dc.w     $A460
  1360.         EndM
  1361.     ELSE
  1362.         IMPORT_CFM_FUNCTION    PBOpenDFAsync
  1363.     ENDIF
  1364.  
  1365. ;
  1366. ; pascal OSErr PBOpenRFSync(ParmBlkPtr paramBlock)
  1367. ;
  1368.     IF ¬ GENERATINGCFM THEN
  1369.         ; parameters: 
  1370.         ;     paramBlock        => A0
  1371.         ; returns: 
  1372.         ;     OSErr             <= D0
  1373.         _PBOpenRFSync:    OPWORD    $A00A
  1374.     ELSE
  1375.         IMPORT_CFM_FUNCTION    PBOpenRFSync
  1376.     ENDIF
  1377.  
  1378. ;
  1379. ; pascal OSErr PBOpenRFAsync(ParmBlkPtr paramBlock)
  1380. ;
  1381.     IF ¬ GENERATINGCFM THEN
  1382.         ; parameters: 
  1383.         ;     paramBlock        => A0
  1384.         ; returns: 
  1385.         ;     OSErr             <= D0
  1386.         _PBOpenRFAsync:    OPWORD    $A40A
  1387.     ELSE
  1388.         IMPORT_CFM_FUNCTION    PBOpenRFAsync
  1389.     ENDIF
  1390.  
  1391. ;
  1392. ; pascal OSErr PBRenameSync(ParmBlkPtr paramBlock)
  1393. ;
  1394.     IF ¬ GENERATINGCFM THEN
  1395.         ; parameters: 
  1396.         ;     paramBlock        => A0
  1397.         ; returns: 
  1398.         ;     OSErr             <= D0
  1399.         _PBRenameSync:    OPWORD    $A00B
  1400.     ELSE
  1401.         IMPORT_CFM_FUNCTION    PBRenameSync
  1402.     ENDIF
  1403.  
  1404. ;
  1405. ; pascal OSErr PBRenameAsync(ParmBlkPtr paramBlock)
  1406. ;
  1407.     IF ¬ GENERATINGCFM THEN
  1408.         ; parameters: 
  1409.         ;     paramBlock        => A0
  1410.         ; returns: 
  1411.         ;     OSErr             <= D0
  1412.         _PBRenameAsync:    OPWORD    $A40B
  1413.     ELSE
  1414.         IMPORT_CFM_FUNCTION    PBRenameAsync
  1415.     ENDIF
  1416.  
  1417. ;
  1418. ; pascal OSErr PBGetFInfoSync(ParmBlkPtr paramBlock)
  1419. ;
  1420.     IF ¬ GENERATINGCFM THEN
  1421.         ; parameters: 
  1422.         ;     paramBlock        => A0
  1423.         ; returns: 
  1424.         ;     OSErr             <= D0
  1425.         _PBGetFInfoSync:    OPWORD    $A00C
  1426.     ELSE
  1427.         IMPORT_CFM_FUNCTION    PBGetFInfoSync
  1428.     ENDIF
  1429.  
  1430. ;
  1431. ; pascal OSErr PBGetFInfoAsync(ParmBlkPtr paramBlock)
  1432. ;
  1433.     IF ¬ GENERATINGCFM THEN
  1434.         ; parameters: 
  1435.         ;     paramBlock        => A0
  1436.         ; returns: 
  1437.         ;     OSErr             <= D0
  1438.         _PBGetFInfoAsync:    OPWORD    $A40C
  1439.     ELSE
  1440.         IMPORT_CFM_FUNCTION    PBGetFInfoAsync
  1441.     ENDIF
  1442.  
  1443. ;
  1444. ; pascal OSErr PBSetFInfoSync(ParmBlkPtr paramBlock)
  1445. ;
  1446.     IF ¬ GENERATINGCFM THEN
  1447.         ; parameters: 
  1448.         ;     paramBlock        => A0
  1449.         ; returns: 
  1450.         ;     OSErr             <= D0
  1451.         _PBSetFInfoSync:    OPWORD    $A00D
  1452.     ELSE
  1453.         IMPORT_CFM_FUNCTION    PBSetFInfoSync
  1454.     ENDIF
  1455.  
  1456. ;
  1457. ; pascal OSErr PBSetFInfoAsync(ParmBlkPtr paramBlock)
  1458. ;
  1459.     IF ¬ GENERATINGCFM THEN
  1460.         ; parameters: 
  1461.         ;     paramBlock        => A0
  1462.         ; returns: 
  1463.         ;     OSErr             <= D0
  1464.         _PBSetFInfoAsync:    OPWORD    $A40D
  1465.     ELSE
  1466.         IMPORT_CFM_FUNCTION    PBSetFInfoAsync
  1467.     ENDIF
  1468.  
  1469. ;
  1470. ; pascal OSErr PBSetFLockSync(ParmBlkPtr paramBlock)
  1471. ;
  1472.     IF ¬ GENERATINGCFM THEN
  1473.         ; parameters: 
  1474.         ;     paramBlock        => A0
  1475.         ; returns: 
  1476.         ;     OSErr             <= D0
  1477.         _PBSetFLockSync:    OPWORD    $A041
  1478.     ELSE
  1479.         IMPORT_CFM_FUNCTION    PBSetFLockSync
  1480.     ENDIF
  1481.  
  1482. ;
  1483. ; pascal OSErr PBSetFLockAsync(ParmBlkPtr paramBlock)
  1484. ;
  1485.     IF ¬ GENERATINGCFM THEN
  1486.         ; parameters: 
  1487.         ;     paramBlock        => A0
  1488.         ; returns: 
  1489.         ;     OSErr             <= D0
  1490.         _PBSetFLockAsync:    OPWORD    $A441
  1491.     ELSE
  1492.         IMPORT_CFM_FUNCTION    PBSetFLockAsync
  1493.     ENDIF
  1494.  
  1495. ;
  1496. ; pascal OSErr PBRstFLockSync(ParmBlkPtr paramBlock)
  1497. ;
  1498.     IF ¬ GENERATINGCFM THEN
  1499.         ; parameters: 
  1500.         ;     paramBlock        => A0
  1501.         ; returns: 
  1502.         ;     OSErr             <= D0
  1503.         _PBRstFLockSync:    OPWORD    $A042
  1504.     ELSE
  1505.         IMPORT_CFM_FUNCTION    PBRstFLockSync
  1506.     ENDIF
  1507.  
  1508. ;
  1509. ; pascal OSErr PBRstFLockAsync(ParmBlkPtr paramBlock)
  1510. ;
  1511.     IF ¬ GENERATINGCFM THEN
  1512.         ; parameters: 
  1513.         ;     paramBlock        => A0
  1514.         ; returns: 
  1515.         ;     OSErr             <= D0
  1516.         _PBRstFLockAsync:    OPWORD    $A442
  1517.     ELSE
  1518.         IMPORT_CFM_FUNCTION    PBRstFLockAsync
  1519.     ENDIF
  1520.  
  1521. ;
  1522. ; pascal OSErr PBSetFVersSync(ParmBlkPtr paramBlock)
  1523. ;
  1524.     IF ¬ GENERATINGCFM THEN
  1525.         ; parameters: 
  1526.         ;     paramBlock        => A0
  1527.         ; returns: 
  1528.         ;     OSErr             <= D0
  1529.         _PBSetFVersSync:    OPWORD    $A043
  1530.     ELSE
  1531.         IMPORT_CFM_FUNCTION    PBSetFVersSync
  1532.     ENDIF
  1533.  
  1534. ;
  1535. ; pascal OSErr PBSetFVersAsync(ParmBlkPtr paramBlock)
  1536. ;
  1537.     IF ¬ GENERATINGCFM THEN
  1538.         ; parameters: 
  1539.         ;     paramBlock        => A0
  1540.         ; returns: 
  1541.         ;     OSErr             <= D0
  1542.         _PBSetFVersAsync:    OPWORD    $A443
  1543.     ELSE
  1544.         IMPORT_CFM_FUNCTION    PBSetFVersAsync
  1545.     ENDIF
  1546.  
  1547. ;
  1548. ; pascal OSErr PBAllocateSync(ParmBlkPtr paramBlock)
  1549. ;
  1550.     IF ¬ GENERATINGCFM THEN
  1551.         ; parameters: 
  1552.         ;     paramBlock        => A0
  1553.         ; returns: 
  1554.         ;     OSErr             <= D0
  1555.         _PBAllocateSync:    OPWORD    $A010
  1556.     ELSE
  1557.         IMPORT_CFM_FUNCTION    PBAllocateSync
  1558.     ENDIF
  1559.  
  1560. ;
  1561. ; pascal OSErr PBAllocateAsync(ParmBlkPtr paramBlock)
  1562. ;
  1563.     IF ¬ GENERATINGCFM THEN
  1564.         ; parameters: 
  1565.         ;     paramBlock        => A0
  1566.         ; returns: 
  1567.         ;     OSErr             <= D0
  1568.         _PBAllocateAsync:    OPWORD    $A410
  1569.     ELSE
  1570.         IMPORT_CFM_FUNCTION    PBAllocateAsync
  1571.     ENDIF
  1572.  
  1573. ;
  1574. ; pascal OSErr PBGetEOFSync(ParmBlkPtr paramBlock)
  1575. ;
  1576.     IF ¬ GENERATINGCFM THEN
  1577.         ; parameters: 
  1578.         ;     paramBlock        => A0
  1579.         ; returns: 
  1580.         ;     OSErr             <= D0
  1581.         _PBGetEOFSync:    OPWORD    $A011
  1582.     ELSE
  1583.         IMPORT_CFM_FUNCTION    PBGetEOFSync
  1584.     ENDIF
  1585.  
  1586. ;
  1587. ; pascal OSErr PBGetEOFAsync(ParmBlkPtr paramBlock)
  1588. ;
  1589.     IF ¬ GENERATINGCFM THEN
  1590.         ; parameters: 
  1591.         ;     paramBlock        => A0
  1592.         ; returns: 
  1593.         ;     OSErr             <= D0
  1594.         _PBGetEOFAsync:    OPWORD    $A411
  1595.     ELSE
  1596.         IMPORT_CFM_FUNCTION    PBGetEOFAsync
  1597.     ENDIF
  1598.  
  1599. ;
  1600. ; pascal OSErr PBSetEOFSync(ParmBlkPtr paramBlock)
  1601. ;
  1602.     IF ¬ GENERATINGCFM THEN
  1603.         ; parameters: 
  1604.         ;     paramBlock        => A0
  1605.         ; returns: 
  1606.         ;     OSErr             <= D0
  1607.         _PBSetEOFSync:    OPWORD    $A012
  1608.     ELSE
  1609.         IMPORT_CFM_FUNCTION    PBSetEOFSync
  1610.     ENDIF
  1611.  
  1612. ;
  1613. ; pascal OSErr PBSetEOFAsync(ParmBlkPtr paramBlock)
  1614. ;
  1615.     IF ¬ GENERATINGCFM THEN
  1616.         ; parameters: 
  1617.         ;     paramBlock        => A0
  1618.         ; returns: 
  1619.         ;     OSErr             <= D0
  1620.         _PBSetEOFAsync:    OPWORD    $A412
  1621.     ELSE
  1622.         IMPORT_CFM_FUNCTION    PBSetEOFAsync
  1623.     ENDIF
  1624.  
  1625. ;
  1626. ; pascal OSErr PBGetFPosSync(ParmBlkPtr paramBlock)
  1627. ;
  1628.     IF ¬ GENERATINGCFM THEN
  1629.         ; parameters: 
  1630.         ;     paramBlock        => A0
  1631.         ; returns: 
  1632.         ;     OSErr             <= D0
  1633.         _PBGetFPosSync:    OPWORD    $A018
  1634.     ELSE
  1635.         IMPORT_CFM_FUNCTION    PBGetFPosSync
  1636.     ENDIF
  1637.  
  1638. ;
  1639. ; pascal OSErr PBGetFPosAsync(ParmBlkPtr paramBlock)
  1640. ;
  1641.     IF ¬ GENERATINGCFM THEN
  1642.         ; parameters: 
  1643.         ;     paramBlock        => A0
  1644.         ; returns: 
  1645.         ;     OSErr             <= D0
  1646.         _PBGetFPosAsync:    OPWORD    $A418
  1647.     ELSE
  1648.         IMPORT_CFM_FUNCTION    PBGetFPosAsync
  1649.     ENDIF
  1650.  
  1651. ;
  1652. ; pascal OSErr PBSetFPosSync(ParmBlkPtr paramBlock)
  1653. ;
  1654.     IF ¬ GENERATINGCFM THEN
  1655.         ; parameters: 
  1656.         ;     paramBlock        => A0
  1657.         ; returns: 
  1658.         ;     OSErr             <= D0
  1659.         _PBSetFPosSync:    OPWORD    $A044
  1660.     ELSE
  1661.         IMPORT_CFM_FUNCTION    PBSetFPosSync
  1662.     ENDIF
  1663.  
  1664. ;
  1665. ; pascal OSErr PBSetFPosAsync(ParmBlkPtr paramBlock)
  1666. ;
  1667.     IF ¬ GENERATINGCFM THEN
  1668.         ; parameters: 
  1669.         ;     paramBlock        => A0
  1670.         ; returns: 
  1671.         ;     OSErr             <= D0
  1672.         _PBSetFPosAsync:    OPWORD    $A444
  1673.     ELSE
  1674.         IMPORT_CFM_FUNCTION    PBSetFPosAsync
  1675.     ENDIF
  1676.  
  1677. ;
  1678. ; pascal OSErr PBFlushFileSync(ParmBlkPtr paramBlock)
  1679. ;
  1680.     IF ¬ GENERATINGCFM THEN
  1681.         ; parameters: 
  1682.         ;     paramBlock        => A0
  1683.         ; returns: 
  1684.         ;     OSErr             <= D0
  1685.         _PBFlushFileSync:    OPWORD    $A045
  1686.     ELSE
  1687.         IMPORT_CFM_FUNCTION    PBFlushFileSync
  1688.     ENDIF
  1689.  
  1690. ;
  1691. ; pascal OSErr PBFlushFileAsync(ParmBlkPtr paramBlock)
  1692. ;
  1693.     IF ¬ GENERATINGCFM THEN
  1694.         ; parameters: 
  1695.         ;     paramBlock        => A0
  1696.         ; returns: 
  1697.         ;     OSErr             <= D0
  1698.         _PBFlushFileAsync:    OPWORD    $A445
  1699.     ELSE
  1700.         IMPORT_CFM_FUNCTION    PBFlushFileAsync
  1701.     ENDIF
  1702.  
  1703. ;
  1704. ; pascal OSErr PBMountVol(ParmBlkPtr paramBlock)
  1705. ;
  1706.     IF ¬ GENERATINGCFM THEN
  1707.         ; parameters: 
  1708.         ;     paramBlock        => A0
  1709.         ; returns: 
  1710.         ;     OSErr             <= D0
  1711.         _PBMountVol:    OPWORD    $A00F
  1712.     ELSE
  1713.         IMPORT_CFM_FUNCTION    PBMountVol
  1714.     ENDIF
  1715.  
  1716. ;
  1717. ; pascal OSErr PBUnmountVol(ParmBlkPtr paramBlock)
  1718. ;
  1719.     IF ¬ GENERATINGCFM THEN
  1720.         ; parameters: 
  1721.         ;     paramBlock        => A0
  1722.         ; returns: 
  1723.         ;     OSErr             <= D0
  1724.         _PBUnmountVol:    OPWORD    $A00E
  1725.     ELSE
  1726.         IMPORT_CFM_FUNCTION    PBUnmountVol
  1727.     ENDIF
  1728.  
  1729. ;
  1730. ; pascal OSErr PBEject(ParmBlkPtr paramBlock)
  1731. ;
  1732.     IF ¬ GENERATINGCFM THEN
  1733.         ; parameters: 
  1734.         ;     paramBlock        => A0
  1735.         ; returns: 
  1736.         ;     OSErr             <= D0
  1737.         _PBEject:    OPWORD    $A017
  1738.     ELSE
  1739.         IMPORT_CFM_FUNCTION    PBEject
  1740.     ENDIF
  1741.  
  1742. ;
  1743. ; pascal OSErr PBOffLine(ParmBlkPtr paramBlock)
  1744. ;
  1745.     IF ¬ GENERATINGCFM THEN
  1746.         ; parameters: 
  1747.         ;     paramBlock        => A0
  1748.         ; returns: 
  1749.         ;     OSErr             <= D0
  1750.         _PBOffLine:    OPWORD    $A035
  1751.     ELSE
  1752.         IMPORT_CFM_FUNCTION    PBOffLine
  1753.     ENDIF
  1754.  
  1755. ;
  1756. ; pascal OSErr SetVol(ConstStr63Param volName, short vRefNum)
  1757. ;
  1758.     IF GENERATINGCFM THEN
  1759.         IMPORT_CFM_FUNCTION    SetVol
  1760.     ENDIF
  1761.  
  1762. ;
  1763. ; pascal OSErr UnmountVol(ConstStr63Param volName, short vRefNum)
  1764. ;
  1765.     IF GENERATINGCFM THEN
  1766.         IMPORT_CFM_FUNCTION    UnmountVol
  1767.     ENDIF
  1768.  
  1769. ;
  1770. ; pascal OSErr Eject(ConstStr63Param volName, short vRefNum)
  1771. ;
  1772.     IF GENERATINGCFM THEN
  1773.         IMPORT_CFM_FUNCTION    Eject
  1774.     ENDIF
  1775.  
  1776. ;
  1777. ; pascal OSErr FlushVol(ConstStr63Param volName, short vRefNum)
  1778. ;
  1779.     IF GENERATINGCFM THEN
  1780.         IMPORT_CFM_FUNCTION    FlushVol
  1781.     ENDIF
  1782.  
  1783. ;
  1784. ; pascal OSErr HSetVol(ConstStr63Param volName, short vRefNum, long dirID)
  1785. ;
  1786.     IF GENERATINGCFM THEN
  1787.         IMPORT_CFM_FUNCTION    HSetVol
  1788.     ENDIF
  1789.  
  1790. ;
  1791. ; pascal void AddDrive(short drvrRefNum, short drvNum, DrvQElPtr qEl)
  1792. ;
  1793.     IF GENERATINGCFM THEN
  1794.         IMPORT_CFM_FUNCTION    AddDrive
  1795.     ENDIF
  1796.  
  1797. ;
  1798. ; pascal OSErr FSOpen(ConstStr255Param fileName, short vRefNum, short *refNum)
  1799. ;
  1800.     IF GENERATINGCFM THEN
  1801.         IMPORT_CFM_FUNCTION    FSOpen
  1802.     ENDIF
  1803.  
  1804. ;
  1805. ; pascal OSErr OpenDF(ConstStr255Param fileName, short vRefNum, short *refNum)
  1806. ;
  1807.     IF GENERATINGCFM THEN
  1808.         IMPORT_CFM_FUNCTION    OpenDF
  1809.     ENDIF
  1810.  
  1811. ;
  1812. ; pascal OSErr FSClose(short refNum)
  1813. ;
  1814.     IF GENERATINGCFM THEN
  1815.         IMPORT_CFM_FUNCTION    FSClose
  1816.     ENDIF
  1817.  
  1818. ;
  1819. ; pascal OSErr FSRead(short refNum, long *count, void *buffPtr)
  1820. ;
  1821.     IF GENERATINGCFM THEN
  1822.         IMPORT_CFM_FUNCTION    FSRead
  1823.     ENDIF
  1824.  
  1825. ;
  1826. ; pascal OSErr FSWrite(short refNum, long *count, const void *buffPtr)
  1827. ;
  1828.     IF GENERATINGCFM THEN
  1829.         IMPORT_CFM_FUNCTION    FSWrite
  1830.     ENDIF
  1831.  
  1832. ;
  1833. ; pascal OSErr GetVInfo(short drvNum, StringPtr volName, short *vRefNum, long *freeBytes)
  1834. ;
  1835.     IF GENERATINGCFM THEN
  1836.         IMPORT_CFM_FUNCTION    GetVInfo
  1837.     ENDIF
  1838.  
  1839. ;
  1840. ; pascal OSErr GetFInfo(ConstStr255Param fileName, short vRefNum, FInfo *fndrInfo)
  1841. ;
  1842.     IF GENERATINGCFM THEN
  1843.         IMPORT_CFM_FUNCTION    GetFInfo
  1844.     ENDIF
  1845.  
  1846. ;
  1847. ; pascal OSErr GetVol(StringPtr volName, short *vRefNum)
  1848. ;
  1849.     IF GENERATINGCFM THEN
  1850.         IMPORT_CFM_FUNCTION    GetVol
  1851.     ENDIF
  1852.  
  1853. ;
  1854. ; pascal OSErr Create(ConstStr255Param fileName, short vRefNum, OSType creator, OSType fileType)
  1855. ;
  1856.     IF GENERATINGCFM THEN
  1857.         IMPORT_CFM_FUNCTION    Create
  1858.     ENDIF
  1859.  
  1860. ;
  1861. ; pascal OSErr FSDelete(ConstStr255Param fileName, short vRefNum)
  1862. ;
  1863.     IF GENERATINGCFM THEN
  1864.         IMPORT_CFM_FUNCTION    FSDelete
  1865.     ENDIF
  1866.  
  1867. ;
  1868. ; pascal OSErr OpenRF(ConstStr255Param fileName, short vRefNum, short *refNum)
  1869. ;
  1870.     IF GENERATINGCFM THEN
  1871.         IMPORT_CFM_FUNCTION    OpenRF
  1872.     ENDIF
  1873.  
  1874. ;
  1875. ; pascal OSErr Rename(ConstStr255Param oldName, short vRefNum, ConstStr255Param newName)
  1876. ;
  1877.     IF GENERATINGCFM THEN
  1878.         IMPORT_CFM_FUNCTION    Rename
  1879.     ENDIF
  1880.  
  1881. ;
  1882. ; pascal OSErr SetFInfo(ConstStr255Param fileName, short vRefNum, const FInfo *fndrInfo)
  1883. ;
  1884.     IF GENERATINGCFM THEN
  1885.         IMPORT_CFM_FUNCTION    SetFInfo
  1886.     ENDIF
  1887.  
  1888. ;
  1889. ; pascal OSErr SetFLock(ConstStr255Param fileName, short vRefNum)
  1890. ;
  1891.     IF GENERATINGCFM THEN
  1892.         IMPORT_CFM_FUNCTION    SetFLock
  1893.     ENDIF
  1894.  
  1895. ;
  1896. ; pascal OSErr RstFLock(ConstStr255Param fileName, short vRefNum)
  1897. ;
  1898.     IF GENERATINGCFM THEN
  1899.         IMPORT_CFM_FUNCTION    RstFLock
  1900.     ENDIF
  1901.  
  1902. ;
  1903. ; pascal OSErr Allocate(short refNum, long *count)
  1904. ;
  1905.     IF GENERATINGCFM THEN
  1906.         IMPORT_CFM_FUNCTION    Allocate
  1907.     ENDIF
  1908.  
  1909. ;
  1910. ; pascal OSErr GetEOF(short refNum, long *logEOF)
  1911. ;
  1912.     IF GENERATINGCFM THEN
  1913.         IMPORT_CFM_FUNCTION    GetEOF
  1914.     ENDIF
  1915.  
  1916. ;
  1917. ; pascal OSErr SetEOF(short refNum, long logEOF)
  1918. ;
  1919.     IF GENERATINGCFM THEN
  1920.         IMPORT_CFM_FUNCTION    SetEOF
  1921.     ENDIF
  1922.  
  1923. ;
  1924. ; pascal OSErr GetFPos(short refNum, long *filePos)
  1925. ;
  1926.     IF GENERATINGCFM THEN
  1927.         IMPORT_CFM_FUNCTION    GetFPos
  1928.     ENDIF
  1929.  
  1930. ;
  1931. ; pascal OSErr SetFPos(short refNum, short posMode, long posOff)
  1932. ;
  1933.     IF GENERATINGCFM THEN
  1934.         IMPORT_CFM_FUNCTION    SetFPos
  1935.     ENDIF
  1936.  
  1937. ;
  1938. ; pascal OSErr GetVRefNum(short fileRefNum, short *vRefNum)
  1939. ;
  1940.     IF GENERATINGCFM THEN
  1941.         IMPORT_CFM_FUNCTION    GetVRefNum
  1942.     ENDIF
  1943.  
  1944. ;
  1945. ; pascal OSErr PBOpenWDSync(WDPBPtr paramBlock)
  1946. ;
  1947.     IF ¬ GENERATINGCFM THEN
  1948.         ; parameters: 
  1949.         ;     paramBlock        => A0
  1950.         ; returns: 
  1951.         ;     OSErr             <= D0
  1952.         Macro
  1953.         _PBOpenWDSync
  1954.             moveq    #1,d0
  1955.             dc.w     $A260
  1956.         EndM
  1957.     ELSE
  1958.         IMPORT_CFM_FUNCTION    PBOpenWDSync
  1959.     ENDIF
  1960.  
  1961. ;
  1962. ; pascal OSErr PBOpenWDAsync(WDPBPtr paramBlock)
  1963. ;
  1964.     IF ¬ GENERATINGCFM THEN
  1965.         ; parameters: 
  1966.         ;     paramBlock        => A0
  1967.         ; returns: 
  1968.         ;     OSErr             <= D0
  1969.         Macro
  1970.         _PBOpenWDAsync
  1971.             moveq    #1,d0
  1972.             dc.w     $A660
  1973.         EndM
  1974.     ELSE
  1975.         IMPORT_CFM_FUNCTION    PBOpenWDAsync
  1976.     ENDIF
  1977.  
  1978. ;
  1979. ; pascal OSErr PBCloseWDSync(WDPBPtr paramBlock)
  1980. ;
  1981.     IF ¬ GENERATINGCFM THEN
  1982.         ; parameters: 
  1983.         ;     paramBlock        => A0
  1984.         ; returns: 
  1985.         ;     OSErr             <= D0
  1986.         Macro
  1987.         _PBCloseWDSync
  1988.             moveq    #2,d0
  1989.             dc.w     $A260
  1990.         EndM
  1991.     ELSE
  1992.         IMPORT_CFM_FUNCTION    PBCloseWDSync
  1993.     ENDIF
  1994.  
  1995. ;
  1996. ; pascal OSErr PBCloseWDAsync(WDPBPtr paramBlock)
  1997. ;
  1998.     IF ¬ GENERATINGCFM THEN
  1999.         ; parameters: 
  2000.         ;     paramBlock        => A0
  2001.         ; returns: 
  2002.         ;     OSErr             <= D0
  2003.         Macro
  2004.         _PBCloseWDAsync
  2005.             moveq    #2,d0
  2006.             dc.w     $A660
  2007.         EndM
  2008.     ELSE
  2009.         IMPORT_CFM_FUNCTION    PBCloseWDAsync
  2010.     ENDIF
  2011.  
  2012. ;
  2013. ; pascal OSErr PBHSetVolSync(WDPBPtr paramBlock)
  2014. ;
  2015.     IF ¬ GENERATINGCFM THEN
  2016.         ; parameters: 
  2017.         ;     paramBlock        => A0
  2018.         ; returns: 
  2019.         ;     OSErr             <= D0
  2020.         _PBHSetVolSync:    OPWORD    $A215
  2021.     ELSE
  2022.         IMPORT_CFM_FUNCTION    PBHSetVolSync
  2023.     ENDIF
  2024.  
  2025. ;
  2026. ; pascal OSErr PBHSetVolAsync(WDPBPtr paramBlock)
  2027. ;
  2028.     IF ¬ GENERATINGCFM THEN
  2029.         ; parameters: 
  2030.         ;     paramBlock        => A0
  2031.         ; returns: 
  2032.         ;     OSErr             <= D0
  2033.         _PBHSetVolAsync:    OPWORD    $A615
  2034.     ELSE
  2035.         IMPORT_CFM_FUNCTION    PBHSetVolAsync
  2036.     ENDIF
  2037.  
  2038. ;
  2039. ; pascal OSErr PBHGetVolSync(WDPBPtr paramBlock)
  2040. ;
  2041.     IF ¬ GENERATINGCFM THEN
  2042.         ; parameters: 
  2043.         ;     paramBlock        => A0
  2044.         ; returns: 
  2045.         ;     OSErr             <= D0
  2046.         _PBHGetVolSync:    OPWORD    $A214
  2047.     ELSE
  2048.         IMPORT_CFM_FUNCTION    PBHGetVolSync
  2049.     ENDIF
  2050.  
  2051. ;
  2052. ; pascal OSErr PBHGetVolAsync(WDPBPtr paramBlock)
  2053. ;
  2054.     IF ¬ GENERATINGCFM THEN
  2055.         ; parameters: 
  2056.         ;     paramBlock        => A0
  2057.         ; returns: 
  2058.         ;     OSErr             <= D0
  2059.         _PBHGetVolAsync:    OPWORD    $A614
  2060.     ELSE
  2061.         IMPORT_CFM_FUNCTION    PBHGetVolAsync
  2062.     ENDIF
  2063.  
  2064. ;
  2065. ; pascal OSErr PBCatMoveSync(CMovePBPtr paramBlock)
  2066. ;
  2067.     IF ¬ GENERATINGCFM THEN
  2068.         ; parameters: 
  2069.         ;     paramBlock        => A0
  2070.         ; returns: 
  2071.         ;     OSErr             <= D0
  2072.         Macro
  2073.         _PBCatMoveSync
  2074.             moveq    #5,d0
  2075.             dc.w     $A260
  2076.         EndM
  2077.     ELSE
  2078.         IMPORT_CFM_FUNCTION    PBCatMoveSync
  2079.     ENDIF
  2080.  
  2081. ;
  2082. ; pascal OSErr PBCatMoveAsync(CMovePBPtr paramBlock)
  2083. ;
  2084.     IF ¬ GENERATINGCFM THEN
  2085.         ; parameters: 
  2086.         ;     paramBlock        => A0
  2087.         ; returns: 
  2088.         ;     OSErr             <= D0
  2089.         Macro
  2090.         _PBCatMoveAsync
  2091.             moveq    #5,d0
  2092.             dc.w     $A660
  2093.         EndM
  2094.     ELSE
  2095.         IMPORT_CFM_FUNCTION    PBCatMoveAsync
  2096.     ENDIF
  2097.  
  2098. ;
  2099. ; pascal OSErr PBDirCreateSync(HParmBlkPtr paramBlock)
  2100. ;
  2101.     IF ¬ GENERATINGCFM THEN
  2102.         ; parameters: 
  2103.         ;     paramBlock        => A0
  2104.         ; returns: 
  2105.         ;     OSErr             <= D0
  2106.         Macro
  2107.         _PBDirCreateSync
  2108.             moveq    #6,d0
  2109.             dc.w     $A260
  2110.         EndM
  2111.     ELSE
  2112.         IMPORT_CFM_FUNCTION    PBDirCreateSync
  2113.     ENDIF
  2114.  
  2115. ;
  2116. ; pascal OSErr PBDirCreateAsync(HParmBlkPtr paramBlock)
  2117. ;
  2118.     IF ¬ GENERATINGCFM THEN
  2119.         ; parameters: 
  2120.         ;     paramBlock        => A0
  2121.         ; returns: 
  2122.         ;     OSErr             <= D0
  2123.         Macro
  2124.         _PBDirCreateAsync
  2125.             moveq    #6,d0
  2126.             dc.w     $A660
  2127.         EndM
  2128.     ELSE
  2129.         IMPORT_CFM_FUNCTION    PBDirCreateAsync
  2130.     ENDIF
  2131.  
  2132. ;
  2133. ; pascal OSErr PBGetWDInfoSync(WDPBPtr paramBlock)
  2134. ;
  2135.     IF ¬ GENERATINGCFM THEN
  2136.         ; parameters: 
  2137.         ;     paramBlock        => A0
  2138.         ; returns: 
  2139.         ;     OSErr             <= D0
  2140.         Macro
  2141.         _PBGetWDInfoSync
  2142.             moveq    #7,d0
  2143.             dc.w     $A260
  2144.         EndM
  2145.     ELSE
  2146.         IMPORT_CFM_FUNCTION    PBGetWDInfoSync
  2147.     ENDIF
  2148.  
  2149. ;
  2150. ; pascal OSErr PBGetWDInfoAsync(WDPBPtr paramBlock)
  2151. ;
  2152.     IF ¬ GENERATINGCFM THEN
  2153.         ; parameters: 
  2154.         ;     paramBlock        => A0
  2155.         ; returns: 
  2156.         ;     OSErr             <= D0
  2157.         Macro
  2158.         _PBGetWDInfoAsync
  2159.             moveq    #7,d0
  2160.             dc.w     $A660
  2161.         EndM
  2162.     ELSE
  2163.         IMPORT_CFM_FUNCTION    PBGetWDInfoAsync
  2164.     ENDIF
  2165.  
  2166. ;
  2167. ; pascal OSErr PBGetFCBInfoSync(FCBPBPtr paramBlock)
  2168. ;
  2169.     IF ¬ GENERATINGCFM THEN
  2170.         ; parameters: 
  2171.         ;     paramBlock        => A0
  2172.         ; returns: 
  2173.         ;     OSErr             <= D0
  2174.         Macro
  2175.         _PBGetFCBInfoSync
  2176.             moveq    #8,d0
  2177.             dc.w     $A260
  2178.         EndM
  2179.     ELSE
  2180.         IMPORT_CFM_FUNCTION    PBGetFCBInfoSync
  2181.     ENDIF
  2182.  
  2183. ;
  2184. ; pascal OSErr PBGetFCBInfoAsync(FCBPBPtr paramBlock)
  2185. ;
  2186.     IF ¬ GENERATINGCFM THEN
  2187.         ; parameters: 
  2188.         ;     paramBlock        => A0
  2189.         ; returns: 
  2190.         ;     OSErr             <= D0
  2191.         Macro
  2192.         _PBGetFCBInfoAsync
  2193.             moveq    #8,d0
  2194.             dc.w     $A660
  2195.         EndM
  2196.     ELSE
  2197.         IMPORT_CFM_FUNCTION    PBGetFCBInfoAsync
  2198.     ENDIF
  2199.  
  2200. ;
  2201. ; pascal OSErr PBGetCatInfoSync(CInfoPBPtr paramBlock)
  2202. ;
  2203.     IF ¬ GENERATINGCFM THEN
  2204.         ; parameters: 
  2205.         ;     paramBlock        => A0
  2206.         ; returns: 
  2207.         ;     OSErr             <= D0
  2208.         Macro
  2209.         _PBGetCatInfoSync
  2210.             moveq    #9,d0
  2211.             dc.w     $A260
  2212.         EndM
  2213.     ELSE
  2214.         IMPORT_CFM_FUNCTION    PBGetCatInfoSync
  2215.     ENDIF
  2216.  
  2217. ;
  2218. ; pascal OSErr PBGetCatInfoAsync(CInfoPBPtr paramBlock)
  2219. ;
  2220.     IF ¬ GENERATINGCFM THEN
  2221.         ; parameters: 
  2222.         ;     paramBlock        => A0
  2223.         ; returns: 
  2224.         ;     OSErr             <= D0
  2225.         Macro
  2226.         _PBGetCatInfoAsync
  2227.             moveq    #9,d0
  2228.             dc.w     $A660
  2229.         EndM
  2230.     ELSE
  2231.         IMPORT_CFM_FUNCTION    PBGetCatInfoAsync
  2232.     ENDIF
  2233.  
  2234. ;
  2235. ; pascal OSErr PBSetCatInfoSync(CInfoPBPtr paramBlock)
  2236. ;
  2237.     IF ¬ GENERATINGCFM THEN
  2238.         ; parameters: 
  2239.         ;     paramBlock        => A0
  2240.         ; returns: 
  2241.         ;     OSErr             <= D0
  2242.         Macro
  2243.         _PBSetCatInfoSync
  2244.             moveq    #10,d0
  2245.             dc.w     $A260
  2246.         EndM
  2247.     ELSE
  2248.         IMPORT_CFM_FUNCTION    PBSetCatInfoSync
  2249.     ENDIF
  2250.  
  2251. ;
  2252. ; pascal OSErr PBSetCatInfoAsync(CInfoPBPtr paramBlock)
  2253. ;
  2254.     IF ¬ GENERATINGCFM THEN
  2255.         ; parameters: 
  2256.         ;     paramBlock        => A0
  2257.         ; returns: 
  2258.         ;     OSErr             <= D0
  2259.         Macro
  2260.         _PBSetCatInfoAsync
  2261.             moveq    #10,d0
  2262.             dc.w     $A660
  2263.         EndM
  2264.     ELSE
  2265.         IMPORT_CFM_FUNCTION    PBSetCatInfoAsync
  2266.     ENDIF
  2267.  
  2268. ;
  2269. ; pascal OSErr PBAllocContigSync(ParmBlkPtr paramBlock)
  2270. ;
  2271.     IF ¬ GENERATINGCFM THEN
  2272.         ; parameters: 
  2273.         ;     paramBlock        => A0
  2274.         ; returns: 
  2275.         ;     OSErr             <= D0
  2276.         _PBAllocContigSync:    OPWORD    $A210
  2277.     ELSE
  2278.         IMPORT_CFM_FUNCTION    PBAllocContigSync
  2279.     ENDIF
  2280.  
  2281. ;
  2282. ; pascal OSErr PBAllocContigAsync(ParmBlkPtr paramBlock)
  2283. ;
  2284.     IF ¬ GENERATINGCFM THEN
  2285.         ; parameters: 
  2286.         ;     paramBlock        => A0
  2287.         ; returns: 
  2288.         ;     OSErr             <= D0
  2289.         _PBAllocContigAsync:    OPWORD    $A610
  2290.     ELSE
  2291.         IMPORT_CFM_FUNCTION    PBAllocContigAsync
  2292.     ENDIF
  2293.  
  2294. ;
  2295. ; pascal OSErr PBLockRangeSync(ParmBlkPtr paramBlock)
  2296. ;
  2297.     IF ¬ GENERATINGCFM THEN
  2298.         ; parameters: 
  2299.         ;     paramBlock        => A0
  2300.         ; returns: 
  2301.         ;     OSErr             <= D0
  2302.         Macro
  2303.         _PBLockRangeSync
  2304.             moveq    #16,d0
  2305.             dc.w     $A260
  2306.         EndM
  2307.     ELSE
  2308.         IMPORT_CFM_FUNCTION    PBLockRangeSync
  2309.     ENDIF
  2310.  
  2311. ;
  2312. ; pascal OSErr PBLockRangeAsync(ParmBlkPtr paramBlock)
  2313. ;
  2314.     IF ¬ GENERATINGCFM THEN
  2315.         ; parameters: 
  2316.         ;     paramBlock        => A0
  2317.         ; returns: 
  2318.         ;     OSErr             <= D0
  2319.         Macro
  2320.         _PBLockRangeAsync
  2321.             moveq    #16,d0
  2322.             dc.w     $A660
  2323.         EndM
  2324.     ELSE
  2325.         IMPORT_CFM_FUNCTION    PBLockRangeAsync
  2326.     ENDIF
  2327.  
  2328. ;
  2329. ; pascal OSErr PBUnlockRangeSync(ParmBlkPtr paramBlock)
  2330. ;
  2331.     IF ¬ GENERATINGCFM THEN
  2332.         ; parameters: 
  2333.         ;     paramBlock        => A0
  2334.         ; returns: 
  2335.         ;     OSErr             <= D0
  2336.         Macro
  2337.         _PBUnlockRangeSync
  2338.             moveq    #17,d0
  2339.             dc.w     $A260
  2340.         EndM
  2341.     ELSE
  2342.         IMPORT_CFM_FUNCTION    PBUnlockRangeSync
  2343.     ENDIF
  2344.  
  2345. ;
  2346. ; pascal OSErr PBUnlockRangeAsync(ParmBlkPtr paramBlock)
  2347. ;
  2348.     IF ¬ GENERATINGCFM THEN
  2349.         ; parameters: 
  2350.         ;     paramBlock        => A0
  2351.         ; returns: 
  2352.         ;     OSErr             <= D0
  2353.         Macro
  2354.         _PBUnlockRangeAsync
  2355.             moveq    #17,d0
  2356.             dc.w     $A660
  2357.         EndM
  2358.     ELSE
  2359.         IMPORT_CFM_FUNCTION    PBUnlockRangeAsync
  2360.     ENDIF
  2361.  
  2362. ;
  2363. ; pascal OSErr PBSetVInfoSync(HParmBlkPtr paramBlock)
  2364. ;
  2365.     IF ¬ GENERATINGCFM THEN
  2366.         ; parameters: 
  2367.         ;     paramBlock        => A0
  2368.         ; returns: 
  2369.         ;     OSErr             <= D0
  2370.         Macro
  2371.         _PBSetVInfoSync
  2372.             moveq    #11,d0
  2373.             dc.w     $A260
  2374.         EndM
  2375.     ELSE
  2376.         IMPORT_CFM_FUNCTION    PBSetVInfoSync
  2377.     ENDIF
  2378.  
  2379. ;
  2380. ; pascal OSErr PBSetVInfoAsync(HParmBlkPtr paramBlock)
  2381. ;
  2382.     IF ¬ GENERATINGCFM THEN
  2383.         ; parameters: 
  2384.         ;     paramBlock        => A0
  2385.         ; returns: 
  2386.         ;     OSErr             <= D0
  2387.         Macro
  2388.         _PBSetVInfoAsync
  2389.             moveq    #11,d0
  2390.             dc.w     $A660
  2391.         EndM
  2392.     ELSE
  2393.         IMPORT_CFM_FUNCTION    PBSetVInfoAsync
  2394.     ENDIF
  2395.  
  2396. ;
  2397. ; pascal OSErr PBHGetVInfoSync(HParmBlkPtr paramBlock)
  2398. ;
  2399.     IF ¬ GENERATINGCFM THEN
  2400.         ; parameters: 
  2401.         ;     paramBlock        => A0
  2402.         ; returns: 
  2403.         ;     OSErr             <= D0
  2404.         _PBHGetVInfoSync:    OPWORD    $A207
  2405.     ELSE
  2406.         IMPORT_CFM_FUNCTION    PBHGetVInfoSync
  2407.     ENDIF
  2408.  
  2409. ;
  2410. ; pascal OSErr PBHGetVInfoAsync(HParmBlkPtr paramBlock)
  2411. ;
  2412.     IF ¬ GENERATINGCFM THEN
  2413.         ; parameters: 
  2414.         ;     paramBlock        => A0
  2415.         ; returns: 
  2416.         ;     OSErr             <= D0
  2417.         _PBHGetVInfoAsync:    OPWORD    $A607
  2418.     ELSE
  2419.         IMPORT_CFM_FUNCTION    PBHGetVInfoAsync
  2420.     ENDIF
  2421.  
  2422. ;
  2423. ; pascal OSErr PBHOpenSync(HParmBlkPtr paramBlock)
  2424. ;
  2425.     IF ¬ GENERATINGCFM THEN
  2426.         ; parameters: 
  2427.         ;     paramBlock        => A0
  2428.         ; returns: 
  2429.         ;     OSErr             <= D0
  2430.         _PBHOpenSync:    OPWORD    $A200
  2431.     ELSE
  2432.         IMPORT_CFM_FUNCTION    PBHOpenSync
  2433.     ENDIF
  2434.  
  2435. ;
  2436. ; pascal OSErr PBHOpenAsync(HParmBlkPtr paramBlock)
  2437. ;
  2438.     IF ¬ GENERATINGCFM THEN
  2439.         ; parameters: 
  2440.         ;     paramBlock        => A0
  2441.         ; returns: 
  2442.         ;     OSErr             <= D0
  2443.         _PBHOpenAsync:    OPWORD    $A600
  2444.     ELSE
  2445.         IMPORT_CFM_FUNCTION    PBHOpenAsync
  2446.     ENDIF
  2447.  
  2448. ;
  2449. ; pascal OSErr PBHOpenRFSync(HParmBlkPtr paramBlock)
  2450. ;
  2451.     IF ¬ GENERATINGCFM THEN
  2452.         ; parameters: 
  2453.         ;     paramBlock        => A0
  2454.         ; returns: 
  2455.         ;     OSErr             <= D0
  2456.         _PBHOpenRFSync:    OPWORD    $A20A
  2457.     ELSE
  2458.         IMPORT_CFM_FUNCTION    PBHOpenRFSync
  2459.     ENDIF
  2460.  
  2461. ;
  2462. ; pascal OSErr PBHOpenRFAsync(HParmBlkPtr paramBlock)
  2463. ;
  2464.     IF ¬ GENERATINGCFM THEN
  2465.         ; parameters: 
  2466.         ;     paramBlock        => A0
  2467.         ; returns: 
  2468.         ;     OSErr             <= D0
  2469.         _PBHOpenRFAsync:    OPWORD    $A60A
  2470.     ELSE
  2471.         IMPORT_CFM_FUNCTION    PBHOpenRFAsync
  2472.     ENDIF
  2473.  
  2474. ;
  2475. ; pascal OSErr PBHOpenDFSync(HParmBlkPtr paramBlock)
  2476. ;
  2477.     IF ¬ GENERATINGCFM THEN
  2478.         ; parameters: 
  2479.         ;     paramBlock        => A0
  2480.         ; returns: 
  2481.         ;     OSErr             <= D0
  2482.         Macro
  2483.         _PBHOpenDFSync
  2484.             moveq    #26,d0
  2485.             dc.w     $A260
  2486.         EndM
  2487.     ELSE
  2488.         IMPORT_CFM_FUNCTION    PBHOpenDFSync
  2489.     ENDIF
  2490.  
  2491. ;
  2492. ; pascal OSErr PBHOpenDFAsync(HParmBlkPtr paramBlock)
  2493. ;
  2494.     IF ¬ GENERATINGCFM THEN
  2495.         ; parameters: 
  2496.         ;     paramBlock        => A0
  2497.         ; returns: 
  2498.         ;     OSErr             <= D0
  2499.         Macro
  2500.         _PBHOpenDFAsync
  2501.             moveq    #26,d0
  2502.             dc.w     $A660
  2503.         EndM
  2504.     ELSE
  2505.         IMPORT_CFM_FUNCTION    PBHOpenDFAsync
  2506.     ENDIF
  2507.  
  2508. ;
  2509. ; pascal OSErr PBHCreateSync(HParmBlkPtr paramBlock)
  2510. ;
  2511.     IF ¬ GENERATINGCFM THEN
  2512.         ; parameters: 
  2513.         ;     paramBlock        => A0
  2514.         ; returns: 
  2515.         ;     OSErr             <= D0
  2516.         _PBHCreateSync:    OPWORD    $A208
  2517.     ELSE
  2518.         IMPORT_CFM_FUNCTION    PBHCreateSync
  2519.     ENDIF
  2520.  
  2521. ;
  2522. ; pascal OSErr PBHCreateAsync(HParmBlkPtr paramBlock)
  2523. ;
  2524.     IF ¬ GENERATINGCFM THEN
  2525.         ; parameters: 
  2526.         ;     paramBlock        => A0
  2527.         ; returns: 
  2528.         ;     OSErr             <= D0
  2529.         _PBHCreateAsync:    OPWORD    $A608
  2530.     ELSE
  2531.         IMPORT_CFM_FUNCTION    PBHCreateAsync
  2532.     ENDIF
  2533.  
  2534. ;
  2535. ; pascal OSErr PBHDeleteSync(HParmBlkPtr paramBlock)
  2536. ;
  2537.     IF ¬ GENERATINGCFM THEN
  2538.         ; parameters: 
  2539.         ;     paramBlock        => A0
  2540.         ; returns: 
  2541.         ;     OSErr             <= D0
  2542.         _PBHDeleteSync:    OPWORD    $A209
  2543.     ELSE
  2544.         IMPORT_CFM_FUNCTION    PBHDeleteSync
  2545.     ENDIF
  2546.  
  2547. ;
  2548. ; pascal OSErr PBHDeleteAsync(HParmBlkPtr paramBlock)
  2549. ;
  2550.     IF ¬ GENERATINGCFM THEN
  2551.         ; parameters: 
  2552.         ;     paramBlock        => A0
  2553.         ; returns: 
  2554.         ;     OSErr             <= D0
  2555.         _PBHDeleteAsync:    OPWORD    $A609
  2556.     ELSE
  2557.         IMPORT_CFM_FUNCTION    PBHDeleteAsync
  2558.     ENDIF
  2559.  
  2560. ;
  2561. ; pascal OSErr PBHRenameSync(HParmBlkPtr paramBlock)
  2562. ;
  2563.     IF ¬ GENERATINGCFM THEN
  2564.         ; parameters: 
  2565.         ;     paramBlock        => A0
  2566.         ; returns: 
  2567.         ;     OSErr             <= D0
  2568.         _PBHRenameSync:    OPWORD    $A20B
  2569.     ELSE
  2570.         IMPORT_CFM_FUNCTION    PBHRenameSync
  2571.     ENDIF
  2572.  
  2573. ;
  2574. ; pascal OSErr PBHRenameAsync(HParmBlkPtr paramBlock)
  2575. ;
  2576.     IF ¬ GENERATINGCFM THEN
  2577.         ; parameters: 
  2578.         ;     paramBlock        => A0
  2579.         ; returns: 
  2580.         ;     OSErr             <= D0
  2581.         _PBHRenameAsync:    OPWORD    $A60B
  2582.     ELSE
  2583.         IMPORT_CFM_FUNCTION    PBHRenameAsync
  2584.     ENDIF
  2585.  
  2586. ;
  2587. ; pascal OSErr PBHRstFLockSync(HParmBlkPtr paramBlock)
  2588. ;
  2589.     IF ¬ GENERATINGCFM THEN
  2590.         ; parameters: 
  2591.         ;     paramBlock        => A0
  2592.         ; returns: 
  2593.         ;     OSErr             <= D0
  2594.         _PBHRstFLockSync:    OPWORD    $A242
  2595.     ELSE
  2596.         IMPORT_CFM_FUNCTION    PBHRstFLockSync
  2597.     ENDIF
  2598.  
  2599. ;
  2600. ; pascal OSErr PBHRstFLockAsync(HParmBlkPtr paramBlock)
  2601. ;
  2602.     IF ¬ GENERATINGCFM THEN
  2603.         ; parameters: 
  2604.         ;     paramBlock        => A0
  2605.         ; returns: 
  2606.         ;     OSErr             <= D0
  2607.         _PBHRstFLockAsync:    OPWORD    $A642
  2608.     ELSE
  2609.         IMPORT_CFM_FUNCTION    PBHRstFLockAsync
  2610.     ENDIF
  2611.  
  2612. ;
  2613. ; pascal OSErr PBHSetFLockSync(HParmBlkPtr paramBlock)
  2614. ;
  2615.     IF ¬ GENERATINGCFM THEN
  2616.         ; parameters: 
  2617.         ;     paramBlock        => A0
  2618.         ; returns: 
  2619.         ;     OSErr             <= D0
  2620.         _PBHSetFLockSync:    OPWORD    $A241
  2621.     ELSE
  2622.         IMPORT_CFM_FUNCTION    PBHSetFLockSync
  2623.     ENDIF
  2624.  
  2625. ;
  2626. ; pascal OSErr PBHSetFLockAsync(HParmBlkPtr paramBlock)
  2627. ;
  2628.     IF ¬ GENERATINGCFM THEN
  2629.         ; parameters: 
  2630.         ;     paramBlock        => A0
  2631.         ; returns: 
  2632.         ;     OSErr             <= D0
  2633.         _PBHSetFLockAsync:    OPWORD    $A641
  2634.     ELSE
  2635.         IMPORT_CFM_FUNCTION    PBHSetFLockAsync
  2636.     ENDIF
  2637.  
  2638. ;
  2639. ; pascal OSErr PBHGetFInfoSync(HParmBlkPtr paramBlock)
  2640. ;
  2641.     IF ¬ GENERATINGCFM THEN
  2642.         ; parameters: 
  2643.         ;     paramBlock        => A0
  2644.         ; returns: 
  2645.         ;     OSErr             <= D0
  2646.         _PBHGetFInfoSync:    OPWORD    $A20C
  2647.     ELSE
  2648.         IMPORT_CFM_FUNCTION    PBHGetFInfoSync
  2649.     ENDIF
  2650.  
  2651. ;
  2652. ; pascal OSErr PBHGetFInfoAsync(HParmBlkPtr paramBlock)
  2653. ;
  2654.     IF ¬ GENERATINGCFM THEN
  2655.         ; parameters: 
  2656.         ;     paramBlock        => A0
  2657.         ; returns: 
  2658.         ;     OSErr             <= D0
  2659.         _PBHGetFInfoAsync:    OPWORD    $A60C
  2660.     ELSE
  2661.         IMPORT_CFM_FUNCTION    PBHGetFInfoAsync
  2662.     ENDIF
  2663.  
  2664. ;
  2665. ; pascal OSErr PBHSetFInfoSync(HParmBlkPtr paramBlock)
  2666. ;
  2667.     IF ¬ GENERATINGCFM THEN
  2668.         ; parameters: 
  2669.         ;     paramBlock        => A0
  2670.         ; returns: 
  2671.         ;     OSErr             <= D0
  2672.         _PBHSetFInfoSync:    OPWORD    $A20D
  2673.     ELSE
  2674.         IMPORT_CFM_FUNCTION    PBHSetFInfoSync
  2675.     ENDIF
  2676.  
  2677. ;
  2678. ; pascal OSErr PBHSetFInfoAsync(HParmBlkPtr paramBlock)
  2679. ;
  2680.     IF ¬ GENERATINGCFM THEN
  2681.         ; parameters: 
  2682.         ;     paramBlock        => A0
  2683.         ; returns: 
  2684.         ;     OSErr             <= D0
  2685.         _PBHSetFInfoAsync:    OPWORD    $A60D
  2686.     ELSE
  2687.         IMPORT_CFM_FUNCTION    PBHSetFInfoAsync
  2688.     ENDIF
  2689.  
  2690. ;
  2691. ; pascal OSErr PBMakeFSSpecSync(HParmBlkPtr paramBlock)
  2692. ;
  2693.     IF ¬ GENERATINGCFM THEN
  2694.         ; parameters: 
  2695.         ;     paramBlock        => A0
  2696.         ; returns: 
  2697.         ;     OSErr             <= D0
  2698.         Macro
  2699.         _PBMakeFSSpecSync
  2700.             moveq    #27,d0
  2701.             dc.w     $A260
  2702.         EndM
  2703.     ELSE
  2704.         IMPORT_CFM_FUNCTION    PBMakeFSSpecSync
  2705.     ENDIF
  2706.  
  2707. ;
  2708. ; pascal OSErr PBMakeFSSpecAsync(HParmBlkPtr paramBlock)
  2709. ;
  2710.     IF ¬ GENERATINGCFM THEN
  2711.         ; parameters: 
  2712.         ;     paramBlock        => A0
  2713.         ; returns: 
  2714.         ;     OSErr             <= D0
  2715.         Macro
  2716.         _PBMakeFSSpecAsync
  2717.             moveq    #27,d0
  2718.             dc.w     $A660
  2719.         EndM
  2720.     ELSE
  2721.         IMPORT_CFM_FUNCTION    PBMakeFSSpecAsync
  2722.     ENDIF
  2723.  
  2724. ;
  2725. ; pascal void FInitQueue(void)
  2726. ;
  2727.     IF ¬ GENERATINGCFM THEN
  2728.         _FInitQueue:    OPWORD    $A016
  2729.     ELSE
  2730.         IMPORT_CFM_FUNCTION    FInitQueue
  2731.     ENDIF
  2732.  
  2733. ;
  2734. ; pascal QHdrPtr GetFSQHdr(void)
  2735. ;
  2736.     IF ¬ GENERATINGCFM THEN
  2737.         Macro
  2738.         _GetFSQHdr
  2739.             dc.w     $2EBC
  2740.             dc.w     $0000
  2741.             dc.w     $0360
  2742.         EndM
  2743.     ELSE
  2744.         IMPORT_CFM_FUNCTION    GetFSQHdr
  2745.     ENDIF
  2746.  
  2747. ;
  2748. ; pascal QHdrPtr GetDrvQHdr(void)
  2749. ;
  2750.     IF ¬ GENERATINGCFM THEN
  2751.         Macro
  2752.         _GetDrvQHdr
  2753.             dc.w     $2EBC
  2754.             dc.w     $0000
  2755.             dc.w     $0308
  2756.         EndM
  2757.     ELSE
  2758.         IMPORT_CFM_FUNCTION    GetDrvQHdr
  2759.     ENDIF
  2760.  
  2761. ;
  2762. ; pascal QHdrPtr GetVCBQHdr(void)
  2763. ;
  2764.     IF ¬ GENERATINGCFM THEN
  2765.         Macro
  2766.         _GetVCBQHdr
  2767.             dc.w     $2EBC
  2768.             dc.w     $0000
  2769.             dc.w     $0356
  2770.         EndM
  2771.     ELSE
  2772.         IMPORT_CFM_FUNCTION    GetVCBQHdr
  2773.     ENDIF
  2774.  
  2775. ;
  2776. ; pascal OSErr HGetVol(StringPtr volName, short *vRefNum, long *dirID)
  2777. ;
  2778.     IF GENERATINGCFM THEN
  2779.         IMPORT_CFM_FUNCTION    HGetVol
  2780.     ENDIF
  2781.  
  2782. ;
  2783. ; pascal OSErr HOpen(short vRefNum, long dirID, ConstStr255Param fileName, SInt8 permission, short *refNum)
  2784. ;
  2785.     IF GENERATINGCFM THEN
  2786.         IMPORT_CFM_FUNCTION    HOpen
  2787.     ENDIF
  2788.  
  2789. ;
  2790. ; pascal OSErr HOpenDF(short vRefNum, long dirID, ConstStr255Param fileName, SInt8 permission, short *refNum)
  2791. ;
  2792.     IF GENERATINGCFM THEN
  2793.         IMPORT_CFM_FUNCTION    HOpenDF
  2794.     ENDIF
  2795.  
  2796. ;
  2797. ; pascal OSErr HOpenRF(short vRefNum, long dirID, ConstStr255Param fileName, SInt8 permission, short *refNum)
  2798. ;
  2799.     IF GENERATINGCFM THEN
  2800.         IMPORT_CFM_FUNCTION    HOpenRF
  2801.     ENDIF
  2802.  
  2803. ;
  2804. ; pascal OSErr AllocContig(short refNum, long *count)
  2805. ;
  2806.     IF GENERATINGCFM THEN
  2807.         IMPORT_CFM_FUNCTION    AllocContig
  2808.     ENDIF
  2809.  
  2810. ;
  2811. ; pascal OSErr HCreate(short vRefNum, long dirID, ConstStr255Param fileName, OSType creator, OSType fileType)
  2812. ;
  2813.     IF GENERATINGCFM THEN
  2814.         IMPORT_CFM_FUNCTION    HCreate
  2815.     ENDIF
  2816.  
  2817. ;
  2818. ; pascal OSErr DirCreate(short vRefNum, long parentDirID, ConstStr255Param directoryName, long *createdDirID)
  2819. ;
  2820.     IF GENERATINGCFM THEN
  2821.         IMPORT_CFM_FUNCTION    DirCreate
  2822.     ENDIF
  2823.  
  2824. ;
  2825. ; pascal OSErr HDelete(short vRefNum, long dirID, ConstStr255Param fileName)
  2826. ;
  2827.     IF GENERATINGCFM THEN
  2828.         IMPORT_CFM_FUNCTION    HDelete
  2829.     ENDIF
  2830.  
  2831. ;
  2832. ; pascal OSErr HGetFInfo(short vRefNum, long dirID, ConstStr255Param fileName, FInfo *fndrInfo)
  2833. ;
  2834.     IF GENERATINGCFM THEN
  2835.         IMPORT_CFM_FUNCTION    HGetFInfo
  2836.     ENDIF
  2837.  
  2838. ;
  2839. ; pascal OSErr HSetFInfo(short vRefNum, long dirID, ConstStr255Param fileName, const FInfo *fndrInfo)
  2840. ;
  2841.     IF GENERATINGCFM THEN
  2842.         IMPORT_CFM_FUNCTION    HSetFInfo
  2843.     ENDIF
  2844.  
  2845. ;
  2846. ; pascal OSErr HSetFLock(short vRefNum, long dirID, ConstStr255Param fileName)
  2847. ;
  2848.     IF GENERATINGCFM THEN
  2849.         IMPORT_CFM_FUNCTION    HSetFLock
  2850.     ENDIF
  2851.  
  2852. ;
  2853. ; pascal OSErr HRstFLock(short vRefNum, long dirID, ConstStr255Param fileName)
  2854. ;
  2855.     IF GENERATINGCFM THEN
  2856.         IMPORT_CFM_FUNCTION    HRstFLock
  2857.     ENDIF
  2858.  
  2859. ;
  2860. ; pascal OSErr HRename(short vRefNum, long dirID, ConstStr255Param oldName, ConstStr255Param newName)
  2861. ;
  2862.     IF GENERATINGCFM THEN
  2863.         IMPORT_CFM_FUNCTION    HRename
  2864.     ENDIF
  2865.  
  2866. ;
  2867. ; pascal OSErr CatMove(short vRefNum, long dirID, ConstStr255Param oldName, long newDirID, ConstStr255Param newName)
  2868. ;
  2869.     IF GENERATINGCFM THEN
  2870.         IMPORT_CFM_FUNCTION    CatMove
  2871.     ENDIF
  2872.  
  2873. ;
  2874. ; pascal OSErr OpenWD(short vRefNum, long dirID, long procID, short *wdRefNum)
  2875. ;
  2876.     IF GENERATINGCFM THEN
  2877.         IMPORT_CFM_FUNCTION    OpenWD
  2878.     ENDIF
  2879.  
  2880. ;
  2881. ; pascal OSErr CloseWD(short wdRefNum)
  2882. ;
  2883.     IF GENERATINGCFM THEN
  2884.         IMPORT_CFM_FUNCTION    CloseWD
  2885.     ENDIF
  2886.  
  2887. ;
  2888. ; pascal OSErr GetWDInfo(short wdRefNum, short *vRefNum, long *dirID, long *procID)
  2889. ;
  2890.     IF GENERATINGCFM THEN
  2891.         IMPORT_CFM_FUNCTION    GetWDInfo
  2892.     ENDIF
  2893.  
  2894. ;  shared environment  
  2895. ;
  2896. ; pascal OSErr PBHGetVolParmsSync(HParmBlkPtr paramBlock)
  2897. ;
  2898.     IF ¬ GENERATINGCFM THEN
  2899.         ; parameters: 
  2900.         ;     paramBlock        => A0
  2901.         ; returns: 
  2902.         ;     OSErr             <= D0
  2903.         Macro
  2904.         _PBHGetVolParmsSync
  2905.             moveq    #48,d0
  2906.             dc.w     $A260
  2907.         EndM
  2908.     ELSE
  2909.         IMPORT_CFM_FUNCTION    PBHGetVolParmsSync
  2910.     ENDIF
  2911.  
  2912. ;
  2913. ; pascal OSErr PBHGetVolParmsAsync(HParmBlkPtr paramBlock)
  2914. ;
  2915.     IF ¬ GENERATINGCFM THEN
  2916.         ; parameters: 
  2917.         ;     paramBlock        => A0
  2918.         ; returns: 
  2919.         ;     OSErr             <= D0
  2920.         Macro
  2921.         _PBHGetVolParmsAsync
  2922.             moveq    #48,d0
  2923.             dc.w     $A660
  2924.         EndM
  2925.     ELSE
  2926.         IMPORT_CFM_FUNCTION    PBHGetVolParmsAsync
  2927.     ENDIF
  2928.  
  2929. ;
  2930. ; pascal OSErr PBHGetLogInInfoSync(HParmBlkPtr paramBlock)
  2931. ;
  2932.     IF ¬ GENERATINGCFM THEN
  2933.         ; parameters: 
  2934.         ;     paramBlock        => A0
  2935.         ; returns: 
  2936.         ;     OSErr             <= D0
  2937.         Macro
  2938.         _PBHGetLogInInfoSync
  2939.             moveq    #49,d0
  2940.             dc.w     $A260
  2941.         EndM
  2942.     ELSE
  2943.         IMPORT_CFM_FUNCTION    PBHGetLogInInfoSync
  2944.     ENDIF
  2945.  
  2946. ;
  2947. ; pascal OSErr PBHGetLogInInfoAsync(HParmBlkPtr paramBlock)
  2948. ;
  2949.     IF ¬ GENERATINGCFM THEN
  2950.         ; parameters: 
  2951.         ;     paramBlock        => A0
  2952.         ; returns: 
  2953.         ;     OSErr             <= D0
  2954.         Macro
  2955.         _PBHGetLogInInfoAsync
  2956.             moveq    #49,d0
  2957.             dc.w     $A660
  2958.         EndM
  2959.     ELSE
  2960.         IMPORT_CFM_FUNCTION    PBHGetLogInInfoAsync
  2961.     ENDIF
  2962.  
  2963. ;
  2964. ; pascal OSErr PBHGetDirAccessSync(HParmBlkPtr paramBlock)
  2965. ;
  2966.     IF ¬ GENERATINGCFM THEN
  2967.         ; parameters: 
  2968.         ;     paramBlock        => A0
  2969.         ; returns: 
  2970.         ;     OSErr             <= D0
  2971.         Macro
  2972.         _PBHGetDirAccessSync
  2973.             moveq    #50,d0
  2974.             dc.w     $A260
  2975.         EndM
  2976.     ELSE
  2977.         IMPORT_CFM_FUNCTION    PBHGetDirAccessSync
  2978.     ENDIF
  2979.  
  2980. ;
  2981. ; pascal OSErr PBHGetDirAccessAsync(HParmBlkPtr paramBlock)
  2982. ;
  2983.     IF ¬ GENERATINGCFM THEN
  2984.         ; parameters: 
  2985.         ;     paramBlock        => A0
  2986.         ; returns: 
  2987.         ;     OSErr             <= D0
  2988.         Macro
  2989.         _PBHGetDirAccessAsync
  2990.             moveq    #50,d0
  2991.             dc.w     $A660
  2992.         EndM
  2993.     ELSE
  2994.         IMPORT_CFM_FUNCTION    PBHGetDirAccessAsync
  2995.     ENDIF
  2996.  
  2997. ;
  2998. ; pascal OSErr PBHSetDirAccessSync(HParmBlkPtr paramBlock)
  2999. ;
  3000.     IF ¬ GENERATINGCFM THEN
  3001.         ; parameters: 
  3002.         ;     paramBlock        => A0
  3003.         ; returns: 
  3004.         ;     OSErr             <= D0
  3005.         Macro
  3006.         _PBHSetDirAccessSync
  3007.             moveq    #51,d0
  3008.             dc.w     $A260
  3009.         EndM
  3010.     ELSE
  3011.         IMPORT_CFM_FUNCTION    PBHSetDirAccessSync
  3012.     ENDIF
  3013.  
  3014. ;
  3015. ; pascal OSErr PBHSetDirAccessAsync(HParmBlkPtr paramBlock)
  3016. ;
  3017.     IF ¬ GENERATINGCFM THEN
  3018.         ; parameters: 
  3019.         ;     paramBlock        => A0
  3020.         ; returns: 
  3021.         ;     OSErr             <= D0
  3022.         Macro
  3023.         _PBHSetDirAccessAsync
  3024.             moveq    #51,d0
  3025.             dc.w     $A660
  3026.         EndM
  3027.     ELSE
  3028.         IMPORT_CFM_FUNCTION    PBHSetDirAccessAsync
  3029.     ENDIF
  3030.  
  3031. ;
  3032. ; pascal OSErr PBHMapIDSync(HParmBlkPtr paramBlock)
  3033. ;
  3034.     IF ¬ GENERATINGCFM THEN
  3035.         ; parameters: 
  3036.         ;     paramBlock        => A0
  3037.         ; returns: 
  3038.         ;     OSErr             <= D0
  3039.         Macro
  3040.         _PBHMapIDSync
  3041.             moveq    #52,d0
  3042.             dc.w     $A260
  3043.         EndM
  3044.     ELSE
  3045.         IMPORT_CFM_FUNCTION    PBHMapIDSync
  3046.     ENDIF
  3047.  
  3048. ;
  3049. ; pascal OSErr PBHMapIDAsync(HParmBlkPtr paramBlock)
  3050. ;
  3051.     IF ¬ GENERATINGCFM THEN
  3052.         ; parameters: 
  3053.         ;     paramBlock        => A0
  3054.         ; returns: 
  3055.         ;     OSErr             <= D0
  3056.         Macro
  3057.         _PBHMapIDAsync
  3058.             moveq    #52,d0
  3059.             dc.w     $A660
  3060.         EndM
  3061.     ELSE
  3062.         IMPORT_CFM_FUNCTION    PBHMapIDAsync
  3063.     ENDIF
  3064.  
  3065. ;
  3066. ; pascal OSErr PBHMapNameSync(HParmBlkPtr paramBlock)
  3067. ;
  3068.     IF ¬ GENERATINGCFM THEN
  3069.         ; parameters: 
  3070.         ;     paramBlock        => A0
  3071.         ; returns: 
  3072.         ;     OSErr             <= D0
  3073.         Macro
  3074.         _PBHMapNameSync
  3075.             moveq    #53,d0
  3076.             dc.w     $A260
  3077.         EndM
  3078.     ELSE
  3079.         IMPORT_CFM_FUNCTION    PBHMapNameSync
  3080.     ENDIF
  3081.  
  3082. ;
  3083. ; pascal OSErr PBHMapNameAsync(HParmBlkPtr paramBlock)
  3084. ;
  3085.     IF ¬ GENERATINGCFM THEN
  3086.         ; parameters: 
  3087.         ;     paramBlock        => A0
  3088.         ; returns: 
  3089.         ;     OSErr             <= D0
  3090.         Macro
  3091.         _PBHMapNameAsync
  3092.             moveq    #53,d0
  3093.             dc.w     $A660
  3094.         EndM
  3095.     ELSE
  3096.         IMPORT_CFM_FUNCTION    PBHMapNameAsync
  3097.     ENDIF
  3098.  
  3099. ;
  3100. ; pascal OSErr PBHCopyFileSync(HParmBlkPtr paramBlock)
  3101. ;
  3102.     IF ¬ GENERATINGCFM THEN
  3103.         ; parameters: 
  3104.         ;     paramBlock        => A0
  3105.         ; returns: 
  3106.         ;     OSErr             <= D0
  3107.         Macro
  3108.         _PBHCopyFileSync
  3109.             moveq    #54,d0
  3110.             dc.w     $A260
  3111.         EndM
  3112.     ELSE
  3113.         IMPORT_CFM_FUNCTION    PBHCopyFileSync
  3114.     ENDIF
  3115.  
  3116. ;
  3117. ; pascal OSErr PBHCopyFileAsync(HParmBlkPtr paramBlock)
  3118. ;
  3119.     IF ¬ GENERATINGCFM THEN
  3120.         ; parameters: 
  3121.         ;     paramBlock        => A0
  3122.         ; returns: 
  3123.         ;     OSErr             <= D0
  3124.         Macro
  3125.         _PBHCopyFileAsync
  3126.             moveq    #54,d0
  3127.             dc.w     $A660
  3128.         EndM
  3129.     ELSE
  3130.         IMPORT_CFM_FUNCTION    PBHCopyFileAsync
  3131.     ENDIF
  3132.  
  3133. ;
  3134. ; pascal OSErr PBHMoveRenameSync(HParmBlkPtr paramBlock)
  3135. ;
  3136.     IF ¬ GENERATINGCFM THEN
  3137.         ; parameters: 
  3138.         ;     paramBlock        => A0
  3139.         ; returns: 
  3140.         ;     OSErr             <= D0
  3141.         Macro
  3142.         _PBHMoveRenameSync
  3143.             moveq    #55,d0
  3144.             dc.w     $A260
  3145.         EndM
  3146.     ELSE
  3147.         IMPORT_CFM_FUNCTION    PBHMoveRenameSync
  3148.     ENDIF
  3149.  
  3150. ;
  3151. ; pascal OSErr PBHMoveRenameAsync(HParmBlkPtr paramBlock)
  3152. ;
  3153.     IF ¬ GENERATINGCFM THEN
  3154.         ; parameters: 
  3155.         ;     paramBlock        => A0
  3156.         ; returns: 
  3157.         ;     OSErr             <= D0
  3158.         Macro
  3159.         _PBHMoveRenameAsync
  3160.             moveq    #55,d0
  3161.             dc.w     $A660
  3162.         EndM
  3163.     ELSE
  3164.         IMPORT_CFM_FUNCTION    PBHMoveRenameAsync
  3165.     ENDIF
  3166.  
  3167. ;
  3168. ; pascal OSErr PBHOpenDenySync(HParmBlkPtr paramBlock)
  3169. ;
  3170.     IF ¬ GENERATINGCFM THEN
  3171.         ; parameters: 
  3172.         ;     paramBlock        => A0
  3173.         ; returns: 
  3174.         ;     OSErr             <= D0
  3175.         Macro
  3176.         _PBHOpenDenySync
  3177.             moveq    #56,d0
  3178.             dc.w     $A260
  3179.         EndM
  3180.     ELSE
  3181.         IMPORT_CFM_FUNCTION    PBHOpenDenySync
  3182.     ENDIF
  3183.  
  3184. ;
  3185. ; pascal OSErr PBHOpenDenyAsync(HParmBlkPtr paramBlock)
  3186. ;
  3187.     IF ¬ GENERATINGCFM THEN
  3188.         ; parameters: 
  3189.         ;     paramBlock        => A0
  3190.         ; returns: 
  3191.         ;     OSErr             <= D0
  3192.         Macro
  3193.         _PBHOpenDenyAsync
  3194.             moveq    #56,d0
  3195.             dc.w     $A660
  3196.         EndM
  3197.     ELSE
  3198.         IMPORT_CFM_FUNCTION    PBHOpenDenyAsync
  3199.     ENDIF
  3200.  
  3201. ;
  3202. ; pascal OSErr PBHOpenRFDenySync(HParmBlkPtr paramBlock)
  3203. ;
  3204.     IF ¬ GENERATINGCFM THEN
  3205.         ; parameters: 
  3206.         ;     paramBlock        => A0
  3207.         ; returns: 
  3208.         ;     OSErr             <= D0
  3209.         Macro
  3210.         _PBHOpenRFDenySync
  3211.             moveq    #57,d0
  3212.             dc.w     $A260
  3213.         EndM
  3214.     ELSE
  3215.         IMPORT_CFM_FUNCTION    PBHOpenRFDenySync
  3216.     ENDIF
  3217.  
  3218. ;
  3219. ; pascal OSErr PBHOpenRFDenyAsync(HParmBlkPtr paramBlock)
  3220. ;
  3221.     IF ¬ GENERATINGCFM THEN
  3222.         ; parameters: 
  3223.         ;     paramBlock        => A0
  3224.         ; returns: 
  3225.         ;     OSErr             <= D0
  3226.         Macro
  3227.         _PBHOpenRFDenyAsync
  3228.             moveq    #57,d0
  3229.             dc.w     $A660
  3230.         EndM
  3231.     ELSE
  3232.         IMPORT_CFM_FUNCTION    PBHOpenRFDenyAsync
  3233.     ENDIF
  3234.  
  3235. ;
  3236. ; pascal OSErr PBExchangeFilesSync(HParmBlkPtr paramBlock)
  3237. ;
  3238.     IF ¬ GENERATINGCFM THEN
  3239.         ; parameters: 
  3240.         ;     paramBlock        => A0
  3241.         ; returns: 
  3242.         ;     OSErr             <= D0
  3243.         Macro
  3244.         _PBExchangeFilesSync
  3245.             moveq    #23,d0
  3246.             dc.w     $A260
  3247.         EndM
  3248.     ELSE
  3249.         IMPORT_CFM_FUNCTION    PBExchangeFilesSync
  3250.     ENDIF
  3251.  
  3252. ;
  3253. ; pascal OSErr PBExchangeFilesAsync(HParmBlkPtr paramBlock)
  3254. ;
  3255.     IF ¬ GENERATINGCFM THEN
  3256.         ; parameters: 
  3257.         ;     paramBlock        => A0
  3258.         ; returns: 
  3259.         ;     OSErr             <= D0
  3260.         Macro
  3261.         _PBExchangeFilesAsync
  3262.             moveq    #23,d0
  3263.             dc.w     $A660
  3264.         EndM
  3265.     ELSE
  3266.         IMPORT_CFM_FUNCTION    PBExchangeFilesAsync
  3267.     ENDIF
  3268.  
  3269. ;
  3270. ; pascal OSErr PBCreateFileIDRefSync(HParmBlkPtr paramBlock)
  3271. ;
  3272.     IF ¬ GENERATINGCFM THEN
  3273.         ; parameters: 
  3274.         ;     paramBlock        => A0
  3275.         ; returns: 
  3276.         ;     OSErr             <= D0
  3277.         Macro
  3278.         _PBCreateFileIDRefSync
  3279.             moveq    #20,d0
  3280.             dc.w     $A260
  3281.         EndM
  3282.     ELSE
  3283.         IMPORT_CFM_FUNCTION    PBCreateFileIDRefSync
  3284.     ENDIF
  3285.  
  3286. ;
  3287. ; pascal OSErr PBCreateFileIDRefAsync(HParmBlkPtr paramBlock)
  3288. ;
  3289.     IF ¬ GENERATINGCFM THEN
  3290.         ; parameters: 
  3291.         ;     paramBlock        => A0
  3292.         ; returns: 
  3293.         ;     OSErr             <= D0
  3294.         Macro
  3295.         _PBCreateFileIDRefAsync
  3296.             moveq    #20,d0
  3297.             dc.w     $A660
  3298.         EndM
  3299.     ELSE
  3300.         IMPORT_CFM_FUNCTION    PBCreateFileIDRefAsync
  3301.     ENDIF
  3302.  
  3303. ;
  3304. ; pascal OSErr PBResolveFileIDRefSync(HParmBlkPtr paramBlock)
  3305. ;
  3306.     IF ¬ GENERATINGCFM THEN
  3307.         ; parameters: 
  3308.         ;     paramBlock        => A0
  3309.         ; returns: 
  3310.         ;     OSErr             <= D0
  3311.         Macro
  3312.         _PBResolveFileIDRefSync
  3313.             moveq    #22,d0
  3314.             dc.w     $A260
  3315.         EndM
  3316.     ELSE
  3317.         IMPORT_CFM_FUNCTION    PBResolveFileIDRefSync
  3318.     ENDIF
  3319.  
  3320. ;
  3321. ; pascal OSErr PBResolveFileIDRefAsync(HParmBlkPtr paramBlock)
  3322. ;
  3323.     IF ¬ GENERATINGCFM THEN
  3324.         ; parameters: 
  3325.         ;     paramBlock        => A0
  3326.         ; returns: 
  3327.         ;     OSErr             <= D0
  3328.         Macro
  3329.         _PBResolveFileIDRefAsync
  3330.             moveq    #22,d0
  3331.             dc.w     $A660
  3332.         EndM
  3333.     ELSE
  3334.         IMPORT_CFM_FUNCTION    PBResolveFileIDRefAsync
  3335.     ENDIF
  3336.  
  3337. ;
  3338. ; pascal OSErr PBDeleteFileIDRefSync(HParmBlkPtr paramBlock)
  3339. ;
  3340.     IF ¬ GENERATINGCFM THEN
  3341.         ; parameters: 
  3342.         ;     paramBlock        => A0
  3343.         ; returns: 
  3344.         ;     OSErr             <= D0
  3345.         Macro
  3346.         _PBDeleteFileIDRefSync
  3347.             moveq    #21,d0
  3348.             dc.w     $A260
  3349.         EndM
  3350.     ELSE
  3351.         IMPORT_CFM_FUNCTION    PBDeleteFileIDRefSync
  3352.     ENDIF
  3353.  
  3354. ;
  3355. ; pascal OSErr PBDeleteFileIDRefAsync(HParmBlkPtr paramBlock)
  3356. ;
  3357.     IF ¬ GENERATINGCFM THEN
  3358.         ; parameters: 
  3359.         ;     paramBlock        => A0
  3360.         ; returns: 
  3361.         ;     OSErr             <= D0
  3362.         Macro
  3363.         _PBDeleteFileIDRefAsync
  3364.             moveq    #21,d0
  3365.             dc.w     $A660
  3366.         EndM
  3367.     ELSE
  3368.         IMPORT_CFM_FUNCTION    PBDeleteFileIDRefAsync
  3369.     ENDIF
  3370.  
  3371. ;
  3372. ; pascal OSErr PBGetForeignPrivsSync(HParmBlkPtr paramBlock)
  3373. ;
  3374.     IF ¬ GENERATINGCFM THEN
  3375.         ; parameters: 
  3376.         ;     paramBlock        => A0
  3377.         ; returns: 
  3378.         ;     OSErr             <= D0
  3379.         Macro
  3380.         _PBGetForeignPrivsSync
  3381.             moveq    #96,d0
  3382.             dc.w     $A260
  3383.         EndM
  3384.     ELSE
  3385.         IMPORT_CFM_FUNCTION    PBGetForeignPrivsSync
  3386.     ENDIF
  3387.  
  3388. ;
  3389. ; pascal OSErr PBGetForeignPrivsAsync(HParmBlkPtr paramBlock)
  3390. ;
  3391.     IF ¬ GENERATINGCFM THEN
  3392.         ; parameters: 
  3393.         ;     paramBlock        => A0
  3394.         ; returns: 
  3395.         ;     OSErr             <= D0
  3396.         Macro
  3397.         _PBGetForeignPrivsAsync
  3398.             moveq    #96,d0
  3399.             dc.w     $A660
  3400.         EndM
  3401.     ELSE
  3402.         IMPORT_CFM_FUNCTION    PBGetForeignPrivsAsync
  3403.     ENDIF
  3404.  
  3405. ;
  3406. ; pascal OSErr PBSetForeignPrivsSync(HParmBlkPtr paramBlock)
  3407. ;
  3408.     IF ¬ GENERATINGCFM THEN
  3409.         ; parameters: 
  3410.         ;     paramBlock        => A0
  3411.         ; returns: 
  3412.         ;     OSErr             <= D0
  3413.         Macro
  3414.         _PBSetForeignPrivsSync
  3415.             moveq    #97,d0
  3416.             dc.w     $A260
  3417.         EndM
  3418.     ELSE
  3419.         IMPORT_CFM_FUNCTION    PBSetForeignPrivsSync
  3420.     ENDIF
  3421.  
  3422. ;
  3423. ; pascal OSErr PBSetForeignPrivsAsync(HParmBlkPtr paramBlock)
  3424. ;
  3425.     IF ¬ GENERATINGCFM THEN
  3426.         ; parameters: 
  3427.         ;     paramBlock        => A0
  3428.         ; returns: 
  3429.         ;     OSErr             <= D0
  3430.         Macro
  3431.         _PBSetForeignPrivsAsync
  3432.             moveq    #97,d0
  3433.             dc.w     $A660
  3434.         EndM
  3435.     ELSE
  3436.         IMPORT_CFM_FUNCTION    PBSetForeignPrivsAsync
  3437.     ENDIF
  3438.  
  3439. ;  Desktop Manager  
  3440. ;
  3441. ; pascal OSErr PBDTGetPath(DTPBPtr paramBlock)
  3442. ;
  3443.     IF ¬ GENERATINGCFM THEN
  3444.         ; parameters: 
  3445.         ;     paramBlock        => A0
  3446.         ; returns: 
  3447.         ;     OSErr             <= D0
  3448.         Macro
  3449.         _PBDTGetPath
  3450.             moveq    #32,d0
  3451.             dc.w     $A260
  3452.         EndM
  3453.     ELSE
  3454.         IMPORT_CFM_FUNCTION    PBDTGetPath
  3455.     ENDIF
  3456.  
  3457. ;
  3458. ; pascal OSErr PBDTCloseDown(DTPBPtr paramBlock)
  3459. ;
  3460.     IF ¬ GENERATINGCFM THEN
  3461.         ; parameters: 
  3462.         ;     paramBlock        => A0
  3463.         ; returns: 
  3464.         ;     OSErr             <= D0
  3465.         Macro
  3466.         _PBDTCloseDown
  3467.             moveq    #33,d0
  3468.             dc.w     $A260
  3469.         EndM
  3470.     ELSE
  3471.         IMPORT_CFM_FUNCTION    PBDTCloseDown
  3472.     ENDIF
  3473.  
  3474. ;
  3475. ; pascal OSErr PBDTAddIconSync(DTPBPtr paramBlock)
  3476. ;
  3477.     IF ¬ GENERATINGCFM THEN
  3478.         ; parameters: 
  3479.         ;     paramBlock        => A0
  3480.         ; returns: 
  3481.         ;     OSErr             <= D0
  3482.         Macro
  3483.         _PBDTAddIconSync
  3484.             moveq    #34,d0
  3485.             dc.w     $A260
  3486.         EndM
  3487.     ELSE
  3488.         IMPORT_CFM_FUNCTION    PBDTAddIconSync
  3489.     ENDIF
  3490.  
  3491. ;
  3492. ; pascal OSErr PBDTAddIconAsync(DTPBPtr paramBlock)
  3493. ;
  3494.     IF ¬ GENERATINGCFM THEN
  3495.         ; parameters: 
  3496.         ;     paramBlock        => A0
  3497.         ; returns: 
  3498.         ;     OSErr             <= D0
  3499.         Macro
  3500.         _PBDTAddIconAsync
  3501.             moveq    #34,d0
  3502.             dc.w     $A660
  3503.         EndM
  3504.     ELSE
  3505.         IMPORT_CFM_FUNCTION    PBDTAddIconAsync
  3506.     ENDIF
  3507.  
  3508. ;
  3509. ; pascal OSErr PBDTGetIconSync(DTPBPtr paramBlock)
  3510. ;
  3511.     IF ¬ GENERATINGCFM THEN
  3512.         ; parameters: 
  3513.         ;     paramBlock        => A0
  3514.         ; returns: 
  3515.         ;     OSErr             <= D0
  3516.         Macro
  3517.         _PBDTGetIconSync
  3518.             moveq    #35,d0
  3519.             dc.w     $A260
  3520.         EndM
  3521.     ELSE
  3522.         IMPORT_CFM_FUNCTION    PBDTGetIconSync
  3523.     ENDIF
  3524.  
  3525. ;
  3526. ; pascal OSErr PBDTGetIconAsync(DTPBPtr paramBlock)
  3527. ;
  3528.     IF ¬ GENERATINGCFM THEN
  3529.         ; parameters: 
  3530.         ;     paramBlock        => A0
  3531.         ; returns: 
  3532.         ;     OSErr             <= D0
  3533.         Macro
  3534.         _PBDTGetIconAsync
  3535.             moveq    #35,d0
  3536.             dc.w     $A660
  3537.         EndM
  3538.     ELSE
  3539.         IMPORT_CFM_FUNCTION    PBDTGetIconAsync
  3540.     ENDIF
  3541.  
  3542. ;
  3543. ; pascal OSErr PBDTGetIconInfoSync(DTPBPtr paramBlock)
  3544. ;
  3545.     IF ¬ GENERATINGCFM THEN
  3546.         ; parameters: 
  3547.         ;     paramBlock        => A0
  3548.         ; returns: 
  3549.         ;     OSErr             <= D0
  3550.         Macro
  3551.         _PBDTGetIconInfoSync
  3552.             moveq    #36,d0
  3553.             dc.w     $A260
  3554.         EndM
  3555.     ELSE
  3556.         IMPORT_CFM_FUNCTION    PBDTGetIconInfoSync
  3557.     ENDIF
  3558.  
  3559. ;
  3560. ; pascal OSErr PBDTGetIconInfoAsync(DTPBPtr paramBlock)
  3561. ;
  3562.     IF ¬ GENERATINGCFM THEN
  3563.         ; parameters: 
  3564.         ;     paramBlock        => A0
  3565.         ; returns: 
  3566.         ;     OSErr             <= D0
  3567.         Macro
  3568.         _PBDTGetIconInfoAsync
  3569.             moveq    #36,d0
  3570.             dc.w     $A660
  3571.         EndM
  3572.     ELSE
  3573.         IMPORT_CFM_FUNCTION    PBDTGetIconInfoAsync
  3574.     ENDIF
  3575.  
  3576. ;
  3577. ; pascal OSErr PBDTAddAPPLSync(DTPBPtr paramBlock)
  3578. ;
  3579.     IF ¬ GENERATINGCFM THEN
  3580.         ; parameters: 
  3581.         ;     paramBlock        => A0
  3582.         ; returns: 
  3583.         ;     OSErr             <= D0
  3584.         Macro
  3585.         _PBDTAddAPPLSync
  3586.             moveq    #37,d0
  3587.             dc.w     $A260
  3588.         EndM
  3589.     ELSE
  3590.         IMPORT_CFM_FUNCTION    PBDTAddAPPLSync
  3591.     ENDIF
  3592.  
  3593. ;
  3594. ; pascal OSErr PBDTAddAPPLAsync(DTPBPtr paramBlock)
  3595. ;
  3596.     IF ¬ GENERATINGCFM THEN
  3597.         ; parameters: 
  3598.         ;     paramBlock        => A0
  3599.         ; returns: 
  3600.         ;     OSErr             <= D0
  3601.         Macro
  3602.         _PBDTAddAPPLAsync
  3603.             moveq    #37,d0
  3604.             dc.w     $A660
  3605.         EndM
  3606.     ELSE
  3607.         IMPORT_CFM_FUNCTION    PBDTAddAPPLAsync
  3608.     ENDIF
  3609.  
  3610. ;
  3611. ; pascal OSErr PBDTRemoveAPPLSync(DTPBPtr paramBlock)
  3612. ;
  3613.     IF ¬ GENERATINGCFM THEN
  3614.         ; parameters: 
  3615.         ;     paramBlock        => A0
  3616.         ; returns: 
  3617.         ;     OSErr             <= D0
  3618.         Macro
  3619.         _PBDTRemoveAPPLSync
  3620.             moveq    #38,d0
  3621.             dc.w     $A260
  3622.         EndM
  3623.     ELSE
  3624.         IMPORT_CFM_FUNCTION    PBDTRemoveAPPLSync
  3625.     ENDIF
  3626.  
  3627. ;
  3628. ; pascal OSErr PBDTRemoveAPPLAsync(DTPBPtr paramBlock)
  3629. ;
  3630.     IF ¬ GENERATINGCFM THEN
  3631.         ; parameters: 
  3632.         ;     paramBlock        => A0
  3633.         ; returns: 
  3634.         ;     OSErr             <= D0
  3635.         Macro
  3636.         _PBDTRemoveAPPLAsync
  3637.             moveq    #38,d0
  3638.             dc.w     $A660
  3639.         EndM
  3640.     ELSE
  3641.         IMPORT_CFM_FUNCTION    PBDTRemoveAPPLAsync
  3642.     ENDIF
  3643.  
  3644. ;
  3645. ; pascal OSErr PBDTGetAPPLSync(DTPBPtr paramBlock)
  3646. ;
  3647.     IF ¬ GENERATINGCFM THEN
  3648.         ; parameters: 
  3649.         ;     paramBlock        => A0
  3650.         ; returns: 
  3651.         ;     OSErr             <= D0
  3652.         Macro
  3653.         _PBDTGetAPPLSync
  3654.             moveq    #39,d0
  3655.             dc.w     $A260
  3656.         EndM
  3657.     ELSE
  3658.         IMPORT_CFM_FUNCTION    PBDTGetAPPLSync
  3659.     ENDIF
  3660.  
  3661. ;
  3662. ; pascal OSErr PBDTGetAPPLAsync(DTPBPtr paramBlock)
  3663. ;
  3664.     IF ¬ GENERATINGCFM THEN
  3665.         ; parameters: 
  3666.         ;     paramBlock        => A0
  3667.         ; returns: 
  3668.         ;     OSErr             <= D0
  3669.         Macro
  3670.         _PBDTGetAPPLAsync
  3671.             moveq    #39,d0
  3672.             dc.w     $A660
  3673.         EndM
  3674.     ELSE
  3675.         IMPORT_CFM_FUNCTION    PBDTGetAPPLAsync
  3676.     ENDIF
  3677.  
  3678. ;
  3679. ; pascal OSErr PBDTSetCommentSync(DTPBPtr paramBlock)
  3680. ;
  3681.     IF ¬ GENERATINGCFM THEN
  3682.         ; parameters: 
  3683.         ;     paramBlock        => A0
  3684.         ; returns: 
  3685.         ;     OSErr             <= D0
  3686.         Macro
  3687.         _PBDTSetCommentSync
  3688.             moveq    #40,d0
  3689.             dc.w     $A260
  3690.         EndM
  3691.     ELSE
  3692.         IMPORT_CFM_FUNCTION    PBDTSetCommentSync
  3693.     ENDIF
  3694.  
  3695. ;
  3696. ; pascal OSErr PBDTSetCommentAsync(DTPBPtr paramBlock)
  3697. ;
  3698.     IF ¬ GENERATINGCFM THEN
  3699.         ; parameters: 
  3700.         ;     paramBlock        => A0
  3701.         ; returns: 
  3702.         ;     OSErr             <= D0
  3703.         Macro
  3704.         _PBDTSetCommentAsync
  3705.             moveq    #40,d0
  3706.             dc.w     $A660
  3707.         EndM
  3708.     ELSE
  3709.         IMPORT_CFM_FUNCTION    PBDTSetCommentAsync
  3710.     ENDIF
  3711.  
  3712. ;
  3713. ; pascal OSErr PBDTRemoveCommentSync(DTPBPtr paramBlock)
  3714. ;
  3715.     IF ¬ GENERATINGCFM THEN
  3716.         ; parameters: 
  3717.         ;     paramBlock        => A0
  3718.         ; returns: 
  3719.         ;     OSErr             <= D0
  3720.         Macro
  3721.         _PBDTRemoveCommentSync
  3722.             moveq    #41,d0
  3723.             dc.w     $A260
  3724.         EndM
  3725.     ELSE
  3726.         IMPORT_CFM_FUNCTION    PBDTRemoveCommentSync
  3727.     ENDIF
  3728.  
  3729. ;
  3730. ; pascal OSErr PBDTRemoveCommentAsync(DTPBPtr paramBlock)
  3731. ;
  3732.     IF ¬ GENERATINGCFM THEN
  3733.         ; parameters: 
  3734.         ;     paramBlock        => A0
  3735.         ; returns: 
  3736.         ;     OSErr             <= D0
  3737.         Macro
  3738.         _PBDTRemoveCommentAsync
  3739.             moveq    #41,d0
  3740.             dc.w     $A660
  3741.         EndM
  3742.     ELSE
  3743.         IMPORT_CFM_FUNCTION    PBDTRemoveCommentAsync
  3744.     ENDIF
  3745.  
  3746. ;
  3747. ; pascal OSErr PBDTGetCommentSync(DTPBPtr paramBlock)
  3748. ;
  3749.     IF ¬ GENERATINGCFM THEN
  3750.         ; parameters: 
  3751.         ;     paramBlock        => A0
  3752.         ; returns: 
  3753.         ;     OSErr             <= D0
  3754.         Macro
  3755.         _PBDTGetCommentSync
  3756.             moveq    #42,d0
  3757.             dc.w     $A260
  3758.         EndM
  3759.     ELSE
  3760.         IMPORT_CFM_FUNCTION    PBDTGetCommentSync
  3761.     ENDIF
  3762.  
  3763. ;
  3764. ; pascal OSErr PBDTGetCommentAsync(DTPBPtr paramBlock)
  3765. ;
  3766.     IF ¬ GENERATINGCFM THEN
  3767.         ; parameters: 
  3768.         ;     paramBlock        => A0
  3769.         ; returns: 
  3770.         ;     OSErr             <= D0
  3771.         Macro
  3772.         _PBDTGetCommentAsync
  3773.             moveq    #42,d0
  3774.             dc.w     $A660
  3775.         EndM
  3776.     ELSE
  3777.         IMPORT_CFM_FUNCTION    PBDTGetCommentAsync
  3778.     ENDIF
  3779.  
  3780. ;
  3781. ; pascal OSErr PBDTFlushSync(DTPBPtr paramBlock)
  3782. ;
  3783.     IF ¬ GENERATINGCFM THEN
  3784.         ; parameters: 
  3785.         ;     paramBlock        => A0
  3786.         ; returns: 
  3787.         ;     OSErr             <= D0
  3788.         Macro
  3789.         _PBDTFlushSync
  3790.             moveq    #43,d0
  3791.             dc.w     $A260
  3792.         EndM
  3793.     ELSE
  3794.         IMPORT_CFM_FUNCTION    PBDTFlushSync
  3795.     ENDIF
  3796.  
  3797. ;
  3798. ; pascal OSErr PBDTFlushAsync(DTPBPtr paramBlock)
  3799. ;
  3800.     IF ¬ GENERATINGCFM THEN
  3801.         ; parameters: 
  3802.         ;     paramBlock        => A0
  3803.         ; returns: 
  3804.         ;     OSErr             <= D0
  3805.         Macro
  3806.         _PBDTFlushAsync
  3807.             moveq    #43,d0
  3808.             dc.w     $A660
  3809.         EndM
  3810.     ELSE
  3811.         IMPORT_CFM_FUNCTION    PBDTFlushAsync
  3812.     ENDIF
  3813.  
  3814. ;
  3815. ; pascal OSErr PBDTResetSync(DTPBPtr paramBlock)
  3816. ;
  3817.     IF ¬ GENERATINGCFM THEN
  3818.         ; parameters: 
  3819.         ;     paramBlock        => A0
  3820.         ; returns: 
  3821.         ;     OSErr             <= D0
  3822.         Macro
  3823.         _PBDTResetSync
  3824.             moveq    #44,d0
  3825.             dc.w     $A260
  3826.         EndM
  3827.     ELSE
  3828.         IMPORT_CFM_FUNCTION    PBDTResetSync
  3829.     ENDIF
  3830.  
  3831. ;
  3832. ; pascal OSErr PBDTResetAsync(DTPBPtr paramBlock)
  3833. ;
  3834.     IF ¬ GENERATINGCFM THEN
  3835.         ; parameters: 
  3836.         ;     paramBlock        => A0
  3837.         ; returns: 
  3838.         ;     OSErr             <= D0
  3839.         Macro
  3840.         _PBDTResetAsync
  3841.             moveq    #44,d0
  3842.             dc.w     $A660
  3843.         EndM
  3844.     ELSE
  3845.         IMPORT_CFM_FUNCTION    PBDTResetAsync
  3846.     ENDIF
  3847.  
  3848. ;
  3849. ; pascal OSErr PBDTGetInfoSync(DTPBPtr paramBlock)
  3850. ;
  3851.     IF ¬ GENERATINGCFM THEN
  3852.         ; parameters: 
  3853.         ;     paramBlock        => A0
  3854.         ; returns: 
  3855.         ;     OSErr             <= D0
  3856.         Macro
  3857.         _PBDTGetInfoSync
  3858.             moveq    #45,d0
  3859.             dc.w     $A260
  3860.         EndM
  3861.     ELSE
  3862.         IMPORT_CFM_FUNCTION    PBDTGetInfoSync
  3863.     ENDIF
  3864.  
  3865. ;
  3866. ; pascal OSErr PBDTGetInfoAsync(DTPBPtr paramBlock)
  3867. ;
  3868.     IF ¬ GENERATINGCFM THEN
  3869.         ; parameters: 
  3870.         ;     paramBlock        => A0
  3871.         ; returns: 
  3872.         ;     OSErr             <= D0
  3873.         Macro
  3874.         _PBDTGetInfoAsync
  3875.             moveq    #45,d0
  3876.             dc.w     $A660
  3877.         EndM
  3878.     ELSE
  3879.         IMPORT_CFM_FUNCTION    PBDTGetInfoAsync
  3880.     ENDIF
  3881.  
  3882. ;
  3883. ; pascal OSErr PBDTOpenInform(DTPBPtr paramBlock)
  3884. ;
  3885.     IF ¬ GENERATINGCFM THEN
  3886.         ; parameters: 
  3887.         ;     paramBlock        => A0
  3888.         ; returns: 
  3889.         ;     OSErr             <= D0
  3890.         Macro
  3891.         _PBDTOpenInform
  3892.             moveq    #46,d0
  3893.             dc.w     $A060
  3894.         EndM
  3895.     ELSE
  3896.         IMPORT_CFM_FUNCTION    PBDTOpenInform
  3897.     ENDIF
  3898.  
  3899. ;
  3900. ; pascal OSErr PBDTDeleteSync(DTPBPtr paramBlock)
  3901. ;
  3902.     IF ¬ GENERATINGCFM THEN
  3903.         ; parameters: 
  3904.         ;     paramBlock        => A0
  3905.         ; returns: 
  3906.         ;     OSErr             <= D0
  3907.         Macro
  3908.         _PBDTDeleteSync
  3909.             moveq    #47,d0
  3910.             dc.w     $A060
  3911.         EndM
  3912.     ELSE
  3913.         IMPORT_CFM_FUNCTION    PBDTDeleteSync
  3914.     ENDIF
  3915.  
  3916. ;
  3917. ; pascal OSErr PBDTDeleteAsync(DTPBPtr paramBlock)
  3918. ;
  3919.     IF ¬ GENERATINGCFM THEN
  3920.         ; parameters: 
  3921.         ;     paramBlock        => A0
  3922.         ; returns: 
  3923.         ;     OSErr             <= D0
  3924.         Macro
  3925.         _PBDTDeleteAsync
  3926.             moveq    #47,d0
  3927.             dc.w     $A460
  3928.         EndM
  3929.     ELSE
  3930.         IMPORT_CFM_FUNCTION    PBDTDeleteAsync
  3931.     ENDIF
  3932.  
  3933. ;  VolumeMount traps  
  3934. ;
  3935. ; pascal OSErr PBGetVolMountInfoSize(ParmBlkPtr paramBlock)
  3936. ;
  3937.     IF ¬ GENERATINGCFM THEN
  3938.         ; parameters: 
  3939.         ;     paramBlock        => A0
  3940.         ; returns: 
  3941.         ;     OSErr             <= D0
  3942.         Macro
  3943.         _PBGetVolMountInfoSize
  3944.             moveq    #63,d0
  3945.             dc.w     $A260
  3946.         EndM
  3947.     ELSE
  3948.         IMPORT_CFM_FUNCTION    PBGetVolMountInfoSize
  3949.     ENDIF
  3950.  
  3951. ;
  3952. ; pascal OSErr PBGetVolMountInfo(ParmBlkPtr paramBlock)
  3953. ;
  3954.     IF ¬ GENERATINGCFM THEN
  3955.         ; parameters: 
  3956.         ;     paramBlock        => A0
  3957.         ; returns: 
  3958.         ;     OSErr             <= D0
  3959.         Macro
  3960.         _PBGetVolMountInfo
  3961.             moveq    #64,d0
  3962.             dc.w     $A260
  3963.         EndM
  3964.     ELSE
  3965.         IMPORT_CFM_FUNCTION    PBGetVolMountInfo
  3966.     ENDIF
  3967.  
  3968. ;
  3969. ; pascal OSErr PBVolumeMount(ParmBlkPtr paramBlock)
  3970. ;
  3971.     IF ¬ GENERATINGCFM THEN
  3972.         ; parameters: 
  3973.         ;     paramBlock        => A0
  3974.         ; returns: 
  3975.         ;     OSErr             <= D0
  3976.         Macro
  3977.         _PBVolumeMount
  3978.             moveq    #65,d0
  3979.             dc.w     $A260
  3980.         EndM
  3981.     ELSE
  3982.         IMPORT_CFM_FUNCTION    PBVolumeMount
  3983.     ENDIF
  3984.  
  3985. ;  FSp traps  
  3986. ;
  3987. ; pascal OSErr FSMakeFSSpec(short vRefNum, long dirID, ConstStr255Param fileName, FSSpec *spec)
  3988. ;
  3989.     IF ¬ GENERATINGCFM THEN
  3990.         Macro
  3991.         _FSMakeFSSpec
  3992.             moveq    #1,d0
  3993.             dc.w     $AA52
  3994.         EndM
  3995.     ELSE
  3996.         IMPORT_CFM_FUNCTION    FSMakeFSSpec
  3997.     ENDIF
  3998.  
  3999. ;
  4000. ; pascal OSErr FSpOpenDF(const FSSpec *spec, SInt8 permission, short *refNum)
  4001. ;
  4002.     IF ¬ GENERATINGCFM THEN
  4003.         Macro
  4004.         _FSpOpenDF
  4005.             moveq    #2,d0
  4006.             dc.w     $AA52
  4007.         EndM
  4008.     ELSE
  4009.         IMPORT_CFM_FUNCTION    FSpOpenDF
  4010.     ENDIF
  4011.  
  4012. ;
  4013. ; pascal OSErr FSpOpenRF(const FSSpec *spec, SInt8 permission, short *refNum)
  4014. ;
  4015.     IF ¬ GENERATINGCFM THEN
  4016.         Macro
  4017.         _FSpOpenRF
  4018.             moveq    #3,d0
  4019.             dc.w     $AA52
  4020.         EndM
  4021.     ELSE
  4022.         IMPORT_CFM_FUNCTION    FSpOpenRF
  4023.     ENDIF
  4024.  
  4025. ;
  4026. ; pascal OSErr FSpCreate(const FSSpec *spec, OSType creator, OSType fileType, ScriptCode scriptTag)
  4027. ;
  4028.     IF ¬ GENERATINGCFM THEN
  4029.         Macro
  4030.         _FSpCreate
  4031.             moveq    #4,d0
  4032.             dc.w     $AA52
  4033.         EndM
  4034.     ELSE
  4035.         IMPORT_CFM_FUNCTION    FSpCreate
  4036.     ENDIF
  4037.  
  4038. ;
  4039. ; pascal OSErr FSpDirCreate(const FSSpec *spec, ScriptCode scriptTag, long *createdDirID)
  4040. ;
  4041.     IF ¬ GENERATINGCFM THEN
  4042.         Macro
  4043.         _FSpDirCreate
  4044.             moveq    #5,d0
  4045.             dc.w     $AA52
  4046.         EndM
  4047.     ELSE
  4048.         IMPORT_CFM_FUNCTION    FSpDirCreate
  4049.     ENDIF
  4050.  
  4051. ;
  4052. ; pascal OSErr FSpDelete(const FSSpec *spec)
  4053. ;
  4054.     IF ¬ GENERATINGCFM THEN
  4055.         Macro
  4056.         _FSpDelete
  4057.             moveq    #6,d0
  4058.             dc.w     $AA52
  4059.         EndM
  4060.     ELSE
  4061.         IMPORT_CFM_FUNCTION    FSpDelete
  4062.     ENDIF
  4063.  
  4064. ;
  4065. ; pascal OSErr FSpGetFInfo(const FSSpec *spec, FInfo *fndrInfo)
  4066. ;
  4067.     IF ¬ GENERATINGCFM THEN
  4068.         Macro
  4069.         _FSpGetFInfo
  4070.             moveq    #7,d0
  4071.             dc.w     $AA52
  4072.         EndM
  4073.     ELSE
  4074.         IMPORT_CFM_FUNCTION    FSpGetFInfo
  4075.     ENDIF
  4076.  
  4077. ;
  4078. ; pascal OSErr FSpSetFInfo(const FSSpec *spec, const FInfo *fndrInfo)
  4079. ;
  4080.     IF ¬ GENERATINGCFM THEN
  4081.         Macro
  4082.         _FSpSetFInfo
  4083.             moveq    #8,d0
  4084.             dc.w     $AA52
  4085.         EndM
  4086.     ELSE
  4087.         IMPORT_CFM_FUNCTION    FSpSetFInfo
  4088.     ENDIF
  4089.  
  4090. ;
  4091. ; pascal OSErr FSpSetFLock(const FSSpec *spec)
  4092. ;
  4093.     IF ¬ GENERATINGCFM THEN
  4094.         Macro
  4095.         _FSpSetFLock
  4096.             moveq    #9,d0
  4097.             dc.w     $AA52
  4098.         EndM
  4099.     ELSE
  4100.         IMPORT_CFM_FUNCTION    FSpSetFLock
  4101.     ENDIF
  4102.  
  4103. ;
  4104. ; pascal OSErr FSpRstFLock(const FSSpec *spec)
  4105. ;
  4106.     IF ¬ GENERATINGCFM THEN
  4107.         Macro
  4108.         _FSpRstFLock
  4109.             moveq    #10,d0
  4110.             dc.w     $AA52
  4111.         EndM
  4112.     ELSE
  4113.         IMPORT_CFM_FUNCTION    FSpRstFLock
  4114.     ENDIF
  4115.  
  4116. ;
  4117. ; pascal OSErr FSpRename(const FSSpec *spec, ConstStr255Param newName)
  4118. ;
  4119.     IF ¬ GENERATINGCFM THEN
  4120.         Macro
  4121.         _FSpRename
  4122.             moveq    #11,d0
  4123.             dc.w     $AA52
  4124.         EndM
  4125.     ELSE
  4126.         IMPORT_CFM_FUNCTION    FSpRename
  4127.     ENDIF
  4128.  
  4129. ;
  4130. ; pascal OSErr FSpCatMove(const FSSpec *source, const FSSpec *dest)
  4131. ;
  4132.     IF ¬ GENERATINGCFM THEN
  4133.         Macro
  4134.         _FSpCatMove
  4135.             moveq    #12,d0
  4136.             dc.w     $AA52
  4137.         EndM
  4138.     ELSE
  4139.         IMPORT_CFM_FUNCTION    FSpCatMove
  4140.     ENDIF
  4141.  
  4142. ;
  4143. ; pascal OSErr FSpExchangeFiles(const FSSpec *source, const FSSpec *dest)
  4144. ;
  4145.     IF ¬ GENERATINGCFM THEN
  4146.         Macro
  4147.         _FSpExchangeFiles
  4148.             moveq    #15,d0
  4149.             dc.w     $AA52
  4150.         EndM
  4151.     ELSE
  4152.         IMPORT_CFM_FUNCTION    FSpExchangeFiles
  4153.     ENDIF
  4154.  
  4155. ;
  4156. ;    PBGetAltAccess and PBSetAltAccess are obsolete and will not be supported 
  4157. ;    on PowerPC. Equivalent functionality is provided by the routines 
  4158. ;    PBGetForeignPrivs and PBSetForeignPrivs.
  4159. ;
  4160.     IF OLDROUTINENAMES  ** ¬ GENERATINGCFM  THEN
  4161. ;
  4162. ; pascal OSErr PBGetAltAccessSync(HParmBlkPtr paramBlock)
  4163. ;
  4164.     IF ¬ GENERATINGCFM THEN
  4165.         ; parameters: 
  4166.         ;     paramBlock        => A0
  4167.         ; returns: 
  4168.         ;     OSErr             <= D0
  4169.         Macro
  4170.         _PBGetAltAccessSync
  4171.             moveq    #96,d0
  4172.             dc.w     $A060
  4173.         EndM
  4174.     ELSE
  4175.         IMPORT_CFM_FUNCTION    PBGetAltAccessSync
  4176.     ENDIF
  4177.  
  4178. ;
  4179. ; pascal OSErr PBGetAltAccessAsync(HParmBlkPtr paramBlock)
  4180. ;
  4181.     IF ¬ GENERATINGCFM THEN
  4182.         ; parameters: 
  4183.         ;     paramBlock        => A0
  4184.         ; returns: 
  4185.         ;     OSErr             <= D0
  4186.         Macro
  4187.         _PBGetAltAccessAsync
  4188.             moveq    #96,d0
  4189.             dc.w     $A460
  4190.         EndM
  4191.     ELSE
  4192.         IMPORT_CFM_FUNCTION    PBGetAltAccessAsync
  4193.     ENDIF
  4194.  
  4195. ;
  4196. ; pascal OSErr PBSetAltAccessSync(HParmBlkPtr paramBlock)
  4197. ;
  4198.     IF ¬ GENERATINGCFM THEN
  4199.         ; parameters: 
  4200.         ;     paramBlock        => A0
  4201.         ; returns: 
  4202.         ;     OSErr             <= D0
  4203.         Macro
  4204.         _PBSetAltAccessSync
  4205.             moveq    #97,d0
  4206.             dc.w     $A060
  4207.         EndM
  4208.     ELSE
  4209.         IMPORT_CFM_FUNCTION    PBSetAltAccessSync
  4210.     ENDIF
  4211.  
  4212. ;
  4213. ; pascal OSErr PBSetAltAccessAsync(HParmBlkPtr paramBlock)
  4214. ;
  4215.     IF ¬ GENERATINGCFM THEN
  4216.         ; parameters: 
  4217.         ;     paramBlock        => A0
  4218.         ; returns: 
  4219.         ;     OSErr             <= D0
  4220.         Macro
  4221.         _PBSetAltAccessAsync
  4222.             moveq    #97,d0
  4223.             dc.w     $A460
  4224.         EndM
  4225.     ELSE
  4226.         IMPORT_CFM_FUNCTION    PBSetAltAccessAsync
  4227.     ENDIF
  4228.  
  4229.     ENDIF
  4230. ;
  4231. ; pascal OSErr PBShareSync(HParmBlkPtr paramBlock)
  4232. ;
  4233.     IF ¬ GENERATINGCFM THEN
  4234.         ; parameters: 
  4235.         ;     paramBlock        => A0
  4236.         ; returns: 
  4237.         ;     OSErr             <= D0
  4238.         Macro
  4239.         _PBShareSync
  4240.             moveq    #66,d0
  4241.             dc.w     $A260
  4242.         EndM
  4243.     ELSE
  4244.         IMPORT_CFM_FUNCTION    PBShareSync
  4245.     ENDIF
  4246.  
  4247. ;
  4248. ; pascal OSErr PBShareAsync(HParmBlkPtr paramBlock)
  4249. ;
  4250.     IF ¬ GENERATINGCFM THEN
  4251.         ; parameters: 
  4252.         ;     paramBlock        => A0
  4253.         ; returns: 
  4254.         ;     OSErr             <= D0
  4255.         Macro
  4256.         _PBShareAsync
  4257.             moveq    #66,d0
  4258.             dc.w     $A660
  4259.         EndM
  4260.     ELSE
  4261.         IMPORT_CFM_FUNCTION    PBShareAsync
  4262.     ENDIF
  4263.  
  4264. ;
  4265. ; pascal OSErr PBUnshareSync(HParmBlkPtr paramBlock)
  4266. ;
  4267.     IF ¬ GENERATINGCFM THEN
  4268.         ; parameters: 
  4269.         ;     paramBlock        => A0
  4270.         ; returns: 
  4271.         ;     OSErr             <= D0
  4272.         Macro
  4273.         _PBUnshareSync
  4274.             moveq    #67,d0
  4275.             dc.w     $A260
  4276.         EndM
  4277.     ELSE
  4278.         IMPORT_CFM_FUNCTION    PBUnshareSync
  4279.     ENDIF
  4280.  
  4281. ;
  4282. ; pascal OSErr PBUnshareAsync(HParmBlkPtr paramBlock)
  4283. ;
  4284.     IF ¬ GENERATINGCFM THEN
  4285.         ; parameters: 
  4286.         ;     paramBlock        => A0
  4287.         ; returns: 
  4288.         ;     OSErr             <= D0
  4289.         Macro
  4290.         _PBUnshareAsync
  4291.             moveq    #67,d0
  4292.             dc.w     $A660
  4293.         EndM
  4294.     ELSE
  4295.         IMPORT_CFM_FUNCTION    PBUnshareAsync
  4296.     ENDIF
  4297.  
  4298. ;
  4299. ; pascal OSErr PBGetUGEntrySync(HParmBlkPtr paramBlock)
  4300. ;
  4301.     IF ¬ GENERATINGCFM THEN
  4302.         ; parameters: 
  4303.         ;     paramBlock        => A0
  4304.         ; returns: 
  4305.         ;     OSErr             <= D0
  4306.         Macro
  4307.         _PBGetUGEntrySync
  4308.             moveq    #68,d0
  4309.             dc.w     $A260
  4310.         EndM
  4311.     ELSE
  4312.         IMPORT_CFM_FUNCTION    PBGetUGEntrySync
  4313.     ENDIF
  4314.  
  4315. ;
  4316. ; pascal OSErr PBGetUGEntryAsync(HParmBlkPtr paramBlock)
  4317. ;
  4318.     IF ¬ GENERATINGCFM THEN
  4319.         ; parameters: 
  4320.         ;     paramBlock        => A0
  4321.         ; returns: 
  4322.         ;     OSErr             <= D0
  4323.         Macro
  4324.         _PBGetUGEntryAsync
  4325.             moveq    #68,d0
  4326.             dc.w     $A660
  4327.         EndM
  4328.     ELSE
  4329.         IMPORT_CFM_FUNCTION    PBGetUGEntryAsync
  4330.     ENDIF
  4331.  
  4332.     ENDIF ; __FILES__
  4333.